📄 constants.java
字号:
/*
* Created on Aug 30, 2006
* Created by Alon Rohter
* Copyright (C) 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* AELITIS, SARL au capital de 30,000 euros
* 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
*
*/
package com.aelitis.azureus.util;
import org.gudy.azureus2.core3.util.Base32;
import com.aelitis.azureus.core.AzureusCore;
/**
*
*/
public class Constants
{
// isOS* constants copied from AZ2 for ease of use/access
public static boolean isOSX = org.gudy.azureus2.core3.util.Constants.isOSX;
public static boolean isWindows = org.gudy.azureus2.core3.util.Constants.isWindows;
public static boolean isUnix = org.gudy.azureus2.core3.util.Constants.isUnix;
public static final String DEFAULT_ADDRESS = "www.zudeo.com"; //DO NOT TOUCH !!!! use the -Dplatform_address=ip override instead
public static final String DEFAULT_PORT = "80";
public static final String DEFAULT_NAMESPACE = "az-web"; //TODO
public static String URL_ADDRESS = System.getProperty("platform_address", DEFAULT_ADDRESS);
public static String URL_PORT = System.getProperty("platform_port", DEFAULT_PORT);
public static String URL_NAMESPACE = System.getProperty("platform_namespace", DEFAULT_NAMESPACE);
public static final String URL_PREFIX = "http://" + URL_ADDRESS + ":" + URL_PORT + "/" + URL_NAMESPACE + "/";
public static String URL_SUFFIX;
public static final String URL_ADD_SEARCH = "app?page=content%2FSearch&service=external&sp=S";
public static final String URL_PLATFORM_MESSAGE = "app?service=rpc";
public static final String URL_POST_PLATFORM_MESSAGE = "app";
public static final String URL_POST_PLATFORM_DATA = "service=rpc";
// public static final String URL_BIG_BROWSE = "content/Browse.html";
public static final String URL_BIG_BROWSE = "content/BucketBrowse.html";
public static final String URL_MINI_BROWSE = "content/MiniBrowse.html";
public static final String URL_DETAILS = "details/";
public static final String URL_COMMENTS = "comment/";
public static final String URL_SHARE = "share/";
public static final String URL_DOWNLOAD = "download/";
public static final String PLATFORM_PAGE = "/" + URL_NAMESPACE + "/PublishNewContent.html";
public static final boolean DIAG_TO_STDOUT = System.getProperty("DIAG_TO_STDOUT", "0").equals("1");
public static void initialize(AzureusCore core) {
URL_SUFFIX = "azid=" + Base32.encode(core.getCryptoManager().getSecureID());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -