|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentNetwork
Method Summary | |
---|---|
void |
addPersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
|
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 |
String |
getAddFriendURL(String bg_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)
|
String |
getProfileService(String login_id,
String client_ref)
|
Object |
getProperty(int property)
|
String |
getServiceURL(int service_type)
Returns the base URL of the service. |
String |
getServiceURL(int service_type,
Object[] params)
Generic parameterised service method |
String |
getSiteRelativeURL(String relative_url,
boolean append_suffix)
|
String |
getSubscriptionURL(String subs_id)
|
String |
getTorrentDownloadService(String hash,
String client_ref)
|
Object |
getTransientProperty(Object key)
|
VuzeFile |
getVuzeFile()
export to vuze file |
String |
getXSearchService(String query,
boolean to_subscribe)
|
boolean |
isServiceSupported(int service_type)
Test if the network supports a particular service |
boolean |
isStartupNetwork()
|
void |
remove()
|
void |
removePersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
|
void |
setPersistentProperty(String name,
Object value)
Sets a locally persistent property. |
void |
setStartupNetwork(boolean is_startup)
|
void |
setTransientProperty(Object key,
Object value)
Set a non-persistent property of the content network |
Field Detail |
---|
static final long CONTENT_NETWORK_UNKNOWN
static final long CONTENT_NETWORK_VUZE
static final long CONTENT_NETWORK_RFN
static final long CONTENT_NETWORK_VHDNL
static final int SERVICE_XSEARCH
static final int SERVICE_RPC
static final int SERVICE_RELAY_RPC
static final int SERVICE_AUTH_RPC
static final int SERVICE_BIG_BROWSE
static final int SERVICE_PUBLISH
static final int SERVICE_WELCOME
static final int SERVICE_PUBLISH_NEW
static final int SERVICE_PUBLISH_ABOUT
static final int SERVICE_CONTENT_DETAILS
static final int SERVICE_COMMENT
static final int SERVICE_PROFILE
static final int SERVICE_TORRENT_DOWNLOAD
static final int SERVICE_SITE
static final int SERVICE_SUPPORT
static final int SERVICE_FAQ
static final int SERVICE_FAQ_TOPIC
static final int SERVICE_BLOG
static final int SERVICE_FORUMS
static final int SERVICE_WIKI
static final int SERVICE_LOGIN
static final int SERVICE_LOGOUT
static final int SERVICE_REGISTER
static final int SERVICE_MY_PROFILE
static final int SERVICE_MY_ACCOUNT
static final int SERVICE_SITE_RELATIVE
static final int SERVICE_ADD_FRIEND
static final int SERVICE_SUBSCRIPTION
static final int SERVICE_GET_ICON
static final int SERVICE_AUTHORIZE
static final int SERVICE_PREPLAYBACK
static final int SERVICE_POSTPLAYBACK
static final int SERVICE_SIDEBAR_CLOSE
static final int SERVICE_ABOUT
static final int SERVICE_IDENTIFY
static final int SERVICE_EXT_SITE_RELATIVE
static final int PROPERTY_SITE_HOST
static final int PROPERTY_REMOVEABLE
static final int PROPERTY_ORDER
static final String PP_AUTH_PAGE_SHOWN
static final String PP_IS_CUSTOMIZATION
static final String PP_ACTIVE
static final String PP_SHOW_IN_MENU
static final String PP_SOURCE_REF
Method Detail |
---|
long getID()
String getName()
Object getProperty(int property)
boolean isStartupNetwork()
void setStartupNetwork(boolean is_startup)
boolean isServiceSupported(int service_type)
service_type
-
String getServiceURL(int service_type)
service_type
-
String getServiceURL(int service_type, Object[] params)
service_type
- params
-
String getXSearchService(String query, boolean to_subscribe)
String getContentDetailsService(String hash, String client_ref)
String getCommentService(String hash)
String getProfileService(String login_id, String client_ref)
String getTorrentDownloadService(String hash, String client_ref)
String getFAQTopicService(String topic)
topic
- The topic number or a pre-defined topic constant found in FAQTopics
String getLoginService(String message)
String getSiteRelativeURL(String relative_url, boolean append_suffix)
String getExternalSiteRelativeURL(String relative_url, boolean append_suffix)
String getAddFriendURL(String bg_colour)
String getSubscriptionURL(String subs_id)
String appendURLSuffix(String url_in, boolean for_post, boolean include_azid)
url_in
- base URL onto which the suffix should be appendedfor_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
VuzeFile getVuzeFile()
void setPersistentProperty(String name, Object value)
name
- PP_ constantvalue
- must be bencodable!Object getPersistentProperty(String name)
void addPersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
void removePersistentPropertyChangeListener(ContentNetworkPropertyChangeListener listener)
void setTransientProperty(Object key, Object value)
key
- value
- Object getTransientProperty(Object key)
void remove()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |