public class RTCPostSubscriber extends Object
RTCPostSubscriber class.
| Modifier and Type | Field and Description | 
|---|---|
protected EventProxy | 
m_proxy  | 
| Constructor and Description | 
|---|
RTCPostSubscriber()
Constructor for RTCPostSubscriber. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected static void | 
sendSubscribeEvent(EventProxy proxy,
                  String url,
                  String username,
                  String password,
                  String categoryName)
sendSubscribeEvent 
 | 
protected static void | 
sendUnsubscribeEvent(EventProxy proxy,
                    String url)
sendUnsubscribeEvent 
 | 
protected void | 
subscribe(String categoryName)
subscribe 
 | 
static void | 
subscribeAll(String viewName)
Fetch all of the categories that are part of the given  
View
 and send subscription events for each category. | 
void | 
unsubscribe(String url)
unsubscribe 
 | 
protected final EventProxy m_proxy
public RTCPostSubscriber()
                  throws IOException
Constructor for RTCPostSubscriber.
IOException - if any.protected 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.protected 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.protected void subscribe(String categoryName) throws IllegalArgumentException, EventProxyException
subscribe
categoryName - a String object.IllegalArgumentException - if any.EventProxyException - if any.public void unsubscribe(String url) throws IllegalArgumentException, EventProxyException
unsubscribe
TODO: Call this during a destroy() or close() methodIllegalArgumentException - if any.EventProxyException - if any.public static void subscribeAll(String viewName)
View
 and send subscription events for each category.viewName - a String object.IOException - if any.EventProxyException - if any.Copyright © 2020. All rights reserved.