com.aelitis.azureus.core.cnetwork.impl
Class ContentNetworkImpl
java.lang.Object
com.aelitis.azureus.core.cnetwork.impl.ContentNetworkImpl
- All Implemented Interfaces:
- ContentNetwork
- Direct Known Subclasses:
- ContentNetworkVuzeGeneric
public abstract class ContentNetworkImpl
- extends Object
- implements ContentNetwork
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 |
Method Summary |
void |
addPersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
|
protected void |
debug(String str)
|
protected void |
destroy()
|
protected void |
exportToBEncodedMap(Map<String,Object> map)
|
String |
getAddFriendURL(String colour)
|
String |
getCommentService(String hash)
|
String |
getContentDetailsService(String hash,
String client_ref)
|
String |
getExternalSiteRelativeURL(String relative_url,
boolean append_suffix)
|
String |
getFAQTopicService(String topic)
|
long |
getID()
Returns one of the above CONTENT_NETWORK constants |
String |
getLoginService(String message)
|
String |
getName()
|
Object |
getPersistentProperty(String name)
|
protected Map<String,Object> |
getPersistentPropertyDefaults()
|
String |
getProfileService(String login_id,
String client_ref)
|
protected String |
getPropertiesKey()
|
String |
getSiteRelativeURL(String relative_url,
boolean append_suffix)
|
protected String |
getString()
|
String |
getSubscriptionURL(String subs_id)
|
String |
getTorrentDownloadService(String hash,
String client_ref)
|
Object |
getTransientProperty(Object key)
|
protected long |
getVersion()
|
VuzeFile |
getVuzeFile()
export to vuze file |
String |
getXSearchService(String query,
boolean to_subscribe)
|
protected boolean |
hasPersistentProperty(String name)
|
protected void |
importFromBEncodedMap(Map<String,Object> map)
|
protected static ContentNetworkImpl |
importFromBEncodedMapStatic(ContentNetworkManagerImpl manager,
Map map)
|
protected boolean |
isSameAs(ContentNetworkImpl other)
|
boolean |
isStartupNetwork()
|
void |
remove()
|
void |
removePersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
|
void |
setPersistentProperty(String name,
Object new_value)
Sets a locally persistent property. |
void |
setStartupNetwork(boolean b)
|
void |
setTransientProperty(Object key,
Object value)
Set a non-persistent property of the content network |
protected void |
updateFrom(ContentNetworkImpl other)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_VUZE_GENERIC
protected static final long TYPE_VUZE_GENERIC
- See Also:
- Constant Field Values
ContentNetworkImpl
protected ContentNetworkImpl(ContentNetworkManagerImpl _manager,
long _type,
long _id,
long _version,
String _name,
Map<String,Object> _pprop_defaults)
ContentNetworkImpl
protected ContentNetworkImpl(ContentNetworkManagerImpl _manager)
importFromBEncodedMapStatic
protected static ContentNetworkImpl importFromBEncodedMapStatic(ContentNetworkManagerImpl manager,
Map map)
throws IOException
- Throws:
IOException
importFromBEncodedMap
protected void importFromBEncodedMap(Map<String,Object> map)
throws IOException
- Throws:
IOException
exportToBEncodedMap
protected void exportToBEncodedMap(Map<String,Object> map)
throws IOException
- Throws:
IOException
updateFrom
protected void updateFrom(ContentNetworkImpl other)
throws IOException
- Throws:
IOException
getID
public long getID()
- Description copied from interface:
ContentNetwork
- Returns one of the above CONTENT_NETWORK constants
- Specified by:
getID
in interface ContentNetwork
- Returns:
getVersion
protected long getVersion()
getName
public String getName()
- Specified by:
getName
in interface ContentNetwork
isSameAs
protected boolean isSameAs(ContentNetworkImpl other)
getXSearchService
public String getXSearchService(String query,
boolean to_subscribe)
- Specified by:
getXSearchService
in interface ContentNetwork
getContentDetailsService
public String getContentDetailsService(String hash,
String client_ref)
- Specified by:
getContentDetailsService
in interface ContentNetwork
getCommentService
public String getCommentService(String hash)
- Specified by:
getCommentService
in interface ContentNetwork
getProfileService
public String getProfileService(String login_id,
String client_ref)
- Specified by:
getProfileService
in interface ContentNetwork
getTorrentDownloadService
public String getTorrentDownloadService(String hash,
String client_ref)
- Specified by:
getTorrentDownloadService
in interface ContentNetwork
getFAQTopicService
public String getFAQTopicService(String topic)
- Specified by:
getFAQTopicService
in interface ContentNetwork
- Parameters:
topic
- The topic number or a pre-defined topic constant found in FAQTopics
getLoginService
public String getLoginService(String message)
- Specified by:
getLoginService
in interface ContentNetwork
getSiteRelativeURL
public String getSiteRelativeURL(String relative_url,
boolean append_suffix)
- Specified by:
getSiteRelativeURL
in interface ContentNetwork
getExternalSiteRelativeURL
public String getExternalSiteRelativeURL(String relative_url,
boolean append_suffix)
- Specified by:
getExternalSiteRelativeURL
in interface ContentNetwork
getAddFriendURL
public String getAddFriendURL(String colour)
- Specified by:
getAddFriendURL
in interface ContentNetwork
getSubscriptionURL
public String getSubscriptionURL(String subs_id)
- Specified by:
getSubscriptionURL
in interface ContentNetwork
getVuzeFile
public VuzeFile getVuzeFile()
- Description copied from interface:
ContentNetwork
- export to vuze file
- Specified by:
getVuzeFile
in interface ContentNetwork
- Returns:
isStartupNetwork
public boolean isStartupNetwork()
- Specified by:
isStartupNetwork
in interface ContentNetwork
setStartupNetwork
public void setStartupNetwork(boolean b)
- Specified by:
setStartupNetwork
in interface ContentNetwork
setTransientProperty
public void setTransientProperty(Object key,
Object value)
- Description copied from interface:
ContentNetwork
- Set a non-persistent property of the content network
- Specified by:
setTransientProperty
in interface ContentNetwork
getTransientProperty
public Object getTransientProperty(Object key)
- Specified by:
getTransientProperty
in interface ContentNetwork
getPropertiesKey
protected String getPropertiesKey()
setPersistentProperty
public void setPersistentProperty(String name,
Object new_value)
- Description copied from interface:
ContentNetwork
- Sets a locally persistent property. Name should be from the PP_ names above so keep track
of what attributes exist
- Specified by:
setPersistentProperty
in interface ContentNetwork
- Parameters:
name
- PP_ constantnew_value
- must be bencodable!
getPersistentProperty
public Object getPersistentProperty(String name)
- Specified by:
getPersistentProperty
in interface ContentNetwork
hasPersistentProperty
protected boolean hasPersistentProperty(String name)
getPersistentPropertyDefaults
protected Map<String,Object> getPersistentPropertyDefaults()
addPersistentPropertyChangeListener
public void addPersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
- Specified by:
addPersistentPropertyChangeListener
in interface ContentNetwork
removePersistentPropertyChangeListener
public void removePersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
- Specified by:
removePersistentPropertyChangeListener
in interface ContentNetwork
destroy
protected void destroy()
remove
public void remove()
- Specified by:
remove
in interface ContentNetwork
debug
protected void debug(String str)
getString
protected String getString()