Package org.opennms.web.category
Class RTCPostSubscriber
- java.lang.Object
-
- org.opennms.web.category.RTCPostSubscriber
-
public class RTCPostSubscriber extends Object
RTCPostSubscriber class.
- Author:
- Larry Karnowski, OpenNMS
-
-
Field Summary
Fields Modifier and Type Field Description protected EventProxy
m_proxy
-
Constructor Summary
Constructors Constructor Description RTCPostSubscriber()
Constructor for RTCPostSubscriber.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
sendSubscribeEvent(EventProxy proxy, String url, String username, String password, String categoryName)
sendSubscribeEventprotected static void
sendUnsubscribeEvent(EventProxy proxy, String url)
sendUnsubscribeEventprotected void
subscribe(String categoryName)
subscribestatic void
subscribeAll(String viewName)
Fetch all of the categories that are part of the givenView
and send subscription events for each category.void
unsubscribe(String url)
unsubscribe
-
-
-
Field Detail
-
m_proxy
protected final EventProxy m_proxy
-
-
Constructor Detail
-
RTCPostSubscriber
public RTCPostSubscriber() throws IOException
Constructor for RTCPostSubscriber.
- Throws:
IOException
- if any.
-
-
Method Detail
-
sendSubscribeEvent
protected static void sendSubscribeEvent(EventProxy proxy, String url, String username, String password, String categoryName) throws IllegalArgumentException, EventProxyException
sendSubscribeEvent
- Parameters:
proxy
- aEventProxy
object.url
- aString
object.username
- aString
object.password
- aString
object.categoryName
- aString
object.- Throws:
IllegalArgumentException
- if any.EventProxyException
- if any.
-
sendUnsubscribeEvent
protected static void sendUnsubscribeEvent(EventProxy proxy, String url) throws IllegalArgumentException, EventProxyException
sendUnsubscribeEvent
- Parameters:
proxy
- aEventProxy
object.url
- aString
object.- Throws:
IllegalArgumentException
- if any.EventProxyException
- if any.
-
subscribe
protected void subscribe(String categoryName) throws IllegalArgumentException, EventProxyException
subscribe
- Parameters:
categoryName
- aString
object.- Throws:
IllegalArgumentException
- if any.EventProxyException
- if any.
-
unsubscribe
public void unsubscribe(String url) throws IllegalArgumentException, EventProxyException
unsubscribe
TODO: Call this during a destroy() or close() method- Throws:
IllegalArgumentException
- if any.EventProxyException
- if any.
-
subscribeAll
public static void subscribeAll(String viewName)
Fetch all of the categories that are part of the givenView
and send subscription events for each category.- Parameters:
viewName
- aString
object.- Throws:
IOException
- if any.EventProxyException
- if any.
-
-