1 /* 2 * Created on Nov 24, 2008 3 * Created by Paul Gardner 4 * 5 * Copyright (C) Azureus Software, Inc, All Rights Reserved. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 */ 19 20 21 package com.aelitis.azureus.core.cnetwork.impl; 22 23 24 import com.aelitis.azureus.core.cnetwork.ContentNetwork; 25 // import com.aelitis.azureus.core.util.FeatureAvailability; 26 27 public class 28 ContentNetworkVuze 29 extends ContentNetworkVuzeGeneric 30 { 31 private static final String DEFAULT_ADDRESS = "client.vuze.com"; //DO NOT TOUCH !!!! use the -Dplatform_address=ip override instead 32 33 private static final String DEFAULT_PORT = "80"; 34 35 private static final String DEFAULT_RELAY_ADDRESS = "www.vuze.com"; //DO NOT TOUCH !!!! use the -Drelay_address=ip override instead 36 37 private static final String DEFAULT_RELAY_PORT = "80"; 38 39 private static final String DEFAULT_EXT_ADDRESS = "www.vuze.com"; //DO NOT TOUCH !!!! 40 41 /* 42 static{ 43 if ( FeatureAvailability.ENABLE_PLUS()){ 44 45 if ( System.getProperty( "platform_address", "" ).length() == 0 ){ 46 47 System.setProperty( "platform_address", "www2.vuze.com" ); 48 } 49 } 50 } 51 */ 52 53 private static final String URL_ADDRESS = System.getProperty( "platform_address", DEFAULT_ADDRESS ); 54 55 private static final String URL_PORT = System.getProperty( "platform_port", DEFAULT_PORT ); 56 57 private static final String URL_PREFIX = "http://" + URL_ADDRESS + ":" + URL_PORT + "/"; 58 59 private static final String URL_EXT_PREFIX = "http://" 60 + System.getProperty( "platform_address_ext", DEFAULT_EXT_ADDRESS ) + ":" 61 + System.getProperty( "platform_port_ext", DEFAULT_PORT ) + "/"; 62 63 private static final String DEFAULT_AUTHORIZED_RPC = "https://" + URL_ADDRESS + ":443/rpc"; 64 65 private static String URL_RELAY_RPC = System.getProperty("relay_url", 66 "http://" + System.getProperty("relay_address", DEFAULT_RELAY_ADDRESS) 67 + ":" + System.getProperty("relay_port", DEFAULT_RELAY_PORT) 68 + "/msgrelay/rpc"); 69 70 private static final String URL_AUTHORIZED_RPC = System.getProperty( 71 "authorized_rpc", "1").equals("1") ? DEFAULT_AUTHORIZED_RPC : URL_PREFIX 72 + "app"; 73 74 private static final String URL_FAQ = "http://wiki.vuze.com/"; 75 76 private static final String URL_BLOG = "http://blog.vuze.com/"; 77 78 private static final String URL_FORUMS = "http://forum.vuze.com/"; 79 80 private static final String URL_WIKI = "http://wiki.vuze.com/"; 81 82 protected ContentNetworkVuze( ContentNetworkManagerImpl manager )83 ContentNetworkVuze( 84 ContentNetworkManagerImpl manager ) 85 { 86 super( manager, 87 ContentNetwork.CONTENT_NETWORK_VUZE, 88 1, 89 "Vuze StudioHD Network", 90 null, 91 null, 92 URL_ADDRESS, 93 URL_PREFIX, 94 null, // no icon 95 URL_RELAY_RPC, 96 URL_AUTHORIZED_RPC, 97 URL_FAQ, 98 URL_BLOG, 99 URL_FORUMS, 100 URL_WIKI, 101 URL_EXT_PREFIX ); 102 } 103 } 104