|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.ws.management.server.BaseSupport
com.sun.ws.management.server.EventingSupport
public final class EventingSupport
A helper class that encapsulates some of the arcane logic to manage subscriptions using the WS-Eventing protocol.
Field Summary | |
---|---|
static int |
DEFAULT_EXPIRATION_MILLIS
|
static int |
DEFAULT_QUEUE_SIZE
|
Fields inherited from class com.sun.ws.management.server.BaseSupport |
---|
contextMap |
Method Summary | |
---|---|
static Filter |
createFilter(Eventing request)
Create a Filter from an Eventing request |
static Addressing |
createPushEventMessage(java.util.UUID id,
java.lang.Object content)
Retrieve the Context associated to passed ID, then create the WS-Man request for the provided content. |
static EndpointReferenceType |
createSubscriptionManagerEpr(Eventing request,
Eventing response,
java.lang.Object context)
|
static EventingIteratorFactory |
getIteratorFactory(java.lang.String resourceURI)
Gets an IteratorFactory for the specified resource URI. |
static java.lang.String[] |
getSupportedDeliveryModes()
|
static boolean |
isDeliveryModeSupported(java.lang.String deliveryMode)
|
static void |
registerIteratorFactory(java.lang.String resourceURI,
EventingIteratorFactory iteratorFactory)
Add an iterator factory to EnumerationSupport. |
static boolean |
sendEvent(java.lang.Object context,
Addressing msg,
NamespaceMap nsMap)
|
static boolean |
sendEvent(java.util.UUID id,
java.lang.Object content)
|
static java.util.UUID |
subscribe(HandlerContext handlerContext,
Eventing request,
Eventing response,
boolean isFiltered,
int queueSize,
ContextListener listener)
|
static java.util.UUID |
subscribe(HandlerContext handlerContext,
Eventing request,
Eventing response,
ContextListener listener)
|
static void |
unsubscribe(HandlerContext handlerContext,
Eventing request,
Eventing response)
|
Methods inherited from class com.sun.ws.management.server.BaseSupport |
---|
addSupportedFilterDialect, createFilter, createXmlFragment, createXmlFragment, getSupportedDialects, isSupportedDialect, stopTimer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_QUEUE_SIZE
public static final int DEFAULT_EXPIRATION_MILLIS
Method Detail |
---|
public static java.lang.String[] getSupportedDeliveryModes()
public static boolean isDeliveryModeSupported(java.lang.String deliveryMode)
public static java.util.UUID subscribe(HandlerContext handlerContext, Eventing request, Eventing response, ContextListener listener) throws javax.xml.datatype.DatatypeConfigurationException, javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, FaultException
javax.xml.datatype.DatatypeConfigurationException
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
FaultException
public static java.util.UUID subscribe(HandlerContext handlerContext, Eventing request, Eventing response, boolean isFiltered, int queueSize, ContextListener listener) throws javax.xml.datatype.DatatypeConfigurationException, javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, FaultException
javax.xml.datatype.DatatypeConfigurationException
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
FaultException
public static EndpointReferenceType createSubscriptionManagerEpr(Eventing request, Eventing response, java.lang.Object context) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
public static void unsubscribe(HandlerContext handlerContext, Eventing request, Eventing response) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, FaultException
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
FaultException
public static boolean sendEvent(java.lang.Object context, Addressing msg, NamespaceMap nsMap) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, javax.xml.xpath.XPathExpressionException, java.lang.Exception
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
javax.xml.xpath.XPathExpressionException
java.lang.Exception
public static Filter createFilter(Eventing request) throws CannotProcessFilterFault, FilteringRequestedUnavailableFault
CannotProcessFilterFault,
- FilteringRequestedUnavailableFault, InternalErrorFault
CannotProcessFilterFault
FilteringRequestedUnavailableFault
public static void registerIteratorFactory(java.lang.String resourceURI, EventingIteratorFactory iteratorFactory) throws java.lang.Exception
resourceURI
- ResourceURI for which this iterator factory
is to be used to fufill Enumeration requests.iteratorFactory
- The Iterator Factory that creates EnumerationIterator
objects that are used by EnumerationSupport to fufill Enumeration requests.
If a factory is already registered it will be overwritten with the specified
factory.
java.lang.Exception
public static EventingIteratorFactory getIteratorFactory(java.lang.String resourceURI)
resourceURI
- the URI associated with the IteratorFactory
public static Addressing createPushEventMessage(java.util.UUID id, java.lang.Object content) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
public static boolean sendEvent(java.util.UUID id, java.lang.Object content) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |