public class RTCPostSubscriber extends Object
RTCPostSubscriber class.
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_password |
protected EventProxy |
m_proxy |
protected String |
m_url |
protected String |
m_username |
| Constructor and Description |
|---|
RTCPostSubscriber()
Constructor for RTCPostSubscriber.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close
|
protected void |
initFromRtcPropertyFile(String categoryName)
initFromRtcPropertyFile
|
static void |
sendSubscribeEvent(EventProxy proxy,
String url,
String username,
String password,
String categoryName)
sendSubscribeEvent
|
static void |
sendUnsubscribeEvent(EventProxy proxy,
String url)
sendUnsubscribeEvent
|
String |
subscribe(String categoryName)
subscribe
|
static void |
subscribeAll(String viewName)
subscribeAll
|
void |
unsubscribe()
unsubscribe
|
protected EventProxy m_proxy
protected String m_url
protected String m_username
protected String m_password
public RTCPostSubscriber()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
Constructor for RTCPostSubscriber.
IOException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.public static void sendSubscribeEvent(EventProxy proxy, String url, String username, String password, String categoryName) throws IllegalArgumentException, EventProxyException
sendSubscribeEvent
proxy - a EventProxy object.url - a String object.username - a String object.password - a String object.categoryName - a String object.IllegalArgumentException - if any.EventProxyException - if any.public static void sendUnsubscribeEvent(EventProxy proxy, String url) throws IllegalArgumentException, EventProxyException
sendUnsubscribeEvent
proxy - a EventProxy object.url - a String object.IllegalArgumentException - if any.EventProxyException - if any.public String subscribe(String categoryName) throws IllegalArgumentException, EventProxyException
subscribe
categoryName - a String object.String object.IllegalArgumentException - if any.EventProxyException - if any.public void unsubscribe()
throws IllegalArgumentException,
EventProxyException
unsubscribe
IllegalArgumentException - if any.EventProxyException - if any.public void close()
close
protected void initFromRtcPropertyFile(String categoryName)
initFromRtcPropertyFile
categoryName - a String object.public static void subscribeAll(String viewName) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, EventProxyException
subscribeAll
viewName - a String object.IOException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.EventProxyException - if any.Copyright © 2015. All rights reserved.