com.aelitis.azureus.core.cnetwork.impl
Class ContentNetworkVuzeGeneric

java.lang.Object
  extended by com.aelitis.azureus.core.cnetwork.impl.ContentNetworkImpl
      extended by com.aelitis.azureus.core.cnetwork.impl.ContentNetworkVuzeGeneric
All Implemented Interfaces:
ContentNetwork
Direct Known Subclasses:
ContentNetworkVuze

public class ContentNetworkVuzeGeneric
extends ContentNetworkImpl


Field Summary
 
Fields inherited from class com.aelitis.azureus.core.cnetwork.impl.ContentNetworkImpl
TYPE_VUZE_GENERIC
 
Fields inherited from interface com.aelitis.azureus.core.cnetwork.ContentNetwork
CONTENT_NETWORK_RFN, CONTENT_NETWORK_UNKNOWN, CONTENT_NETWORK_VHDNL, CONTENT_NETWORK_VUZE, PP_ACTIVE, PP_AUTH_PAGE_SHOWN, PP_IS_CUSTOMIZATION, PP_SHOW_IN_MENU, PP_SOURCE_REF, PROPERTY_ORDER, PROPERTY_REMOVEABLE, PROPERTY_SITE_HOST, SERVICE_ABOUT, SERVICE_ADD_FRIEND, SERVICE_AUTH_RPC, SERVICE_AUTHORIZE, SERVICE_BIG_BROWSE, SERVICE_BLOG, SERVICE_COMMENT, SERVICE_CONTENT_DETAILS, SERVICE_EXT_SITE_RELATIVE, SERVICE_FAQ, SERVICE_FAQ_TOPIC, SERVICE_FORUMS, SERVICE_GET_ICON, SERVICE_IDENTIFY, SERVICE_LOGIN, SERVICE_LOGOUT, SERVICE_MY_ACCOUNT, SERVICE_MY_PROFILE, SERVICE_POSTPLAYBACK, SERVICE_PREPLAYBACK, SERVICE_PROFILE, SERVICE_PUBLISH, SERVICE_PUBLISH_ABOUT, SERVICE_PUBLISH_NEW, SERVICE_REGISTER, SERVICE_RELAY_RPC, SERVICE_RPC, SERVICE_SIDEBAR_CLOSE, SERVICE_SITE, SERVICE_SITE_RELATIVE, SERVICE_SUBSCRIPTION, SERVICE_SUPPORT, SERVICE_TORRENT_DOWNLOAD, SERVICE_WELCOME, SERVICE_WIKI, SERVICE_XSEARCH
 
Constructor Summary
  ContentNetworkVuzeGeneric(ContentNetworkManagerImpl _manager, long _content_network, long _version, String _name, Map<String,Object> _pprop_defaults, Set<Integer> _service_exclusions, String _site_host, String _url_prefix, String _url_icon, String _url_relay_rpc, String _url_authorised_rpc, String _url_faq, String _url_blog, String _url_forums, String _url_wiki, String _url_ext_prefix)
           
protected ContentNetworkVuzeGeneric(ContentNetworkManagerImpl _manager, Map<String,Object> _map)
           
 
Method Summary
protected  void addService(int type, String url_str)
           
 String appendURLSuffix(String url_in, boolean for_post, boolean include_azid)
          I'd rather this function we embedded into the ContentNetwork service getting logic, but for the moment expose it for simplicity
protected  void exportToBEncodedMap(Map map)
           
 Object getProperty(int property)
           
protected  Set<Integer> getServiceExclusions()
           
 String getServiceURL(int service_type)
          Returns the base URL of the service.
 String getServiceURL(int service_type, Object[] params)
          Generic parameterised service method
protected  void importFromBEncodedMap(Map<String,Object> map)
           
protected  void init()
           
 boolean isServiceSupported(int service_type)
          Test if the network supports a particular service
 
Methods inherited from class com.aelitis.azureus.core.cnetwork.impl.ContentNetworkImpl
addPersistentPropertyChangeListener, debug, destroy, getAddFriendURL, getCommentService, getContentDetailsService, getExternalSiteRelativeURL, getFAQTopicService, getID, getLoginService, getName, getPersistentProperty, getPersistentPropertyDefaults, getProfileService, getPropertiesKey, getSiteRelativeURL, getString, getSubscriptionURL, getTorrentDownloadService, getTransientProperty, getVersion, getVuzeFile, getXSearchService, hasPersistentProperty, importFromBEncodedMapStatic, isSameAs, isStartupNetwork, remove, removePersistentPropertyChangeListener, setPersistentProperty, setStartupNetwork, setTransientProperty, updateFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentNetworkVuzeGeneric

public ContentNetworkVuzeGeneric(ContentNetworkManagerImpl _manager,
                                 long _content_network,
                                 long _version,
                                 String _name,
                                 Map<String,Object> _pprop_defaults,
                                 Set<Integer> _service_exclusions,
                                 String _site_host,
                                 String _url_prefix,
                                 String _url_icon,
                                 String _url_relay_rpc,
                                 String _url_authorised_rpc,
                                 String _url_faq,
                                 String _url_blog,
                                 String _url_forums,
                                 String _url_wiki,
                                 String _url_ext_prefix)

ContentNetworkVuzeGeneric

protected ContentNetworkVuzeGeneric(ContentNetworkManagerImpl _manager,
                                    Map<String,Object> _map)
                             throws IOException
Throws:
IOException
Method Detail

importFromBEncodedMap

protected void importFromBEncodedMap(Map<String,Object> map)
                              throws IOException
Overrides:
importFromBEncodedMap in class ContentNetworkImpl
Throws:
IOException

exportToBEncodedMap

protected void exportToBEncodedMap(Map map)
                            throws IOException
Overrides:
exportToBEncodedMap in class ContentNetworkImpl
Throws:
IOException

init

protected void init()

addService

protected void addService(int type,
                          String url_str)

getServiceExclusions

protected Set<Integer> getServiceExclusions()

getProperty

public Object getProperty(int property)

isServiceSupported

public boolean isServiceSupported(int service_type)
Description copied from interface: ContentNetwork
Test if the network supports a particular service

Returns:

getServiceURL

public String getServiceURL(int service_type)
Description copied from interface: ContentNetwork
Returns the base URL of the service. If not parameterised then this is sufficient to invoke the service

Returns:

getServiceURL

public String getServiceURL(int service_type,
                            Object[] params)
Description copied from interface: ContentNetwork
Generic parameterised service method

Returns:

appendURLSuffix

public String appendURLSuffix(String url_in,
                              boolean for_post,
                              boolean include_azid)
Description copied from interface: ContentNetwork
I'd rather this function we embedded into the ContentNetwork service getting logic, but for the moment expose it for simplicity

Parameters:
url_in - base URL onto which the suffix should be appended
for_post - whether this is for an HTTP 'POST' operation, in which case the parameter separator is always an '&' (for 'GET' the first param uses a '?' sep)
include_azid - whether or not we should include the azid in the suffix
Returns: