|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.wsstar.notification.extension.utils.WsnSpecificTypeHelper
public class WsnSpecificTypeHelper
This class provides a set of static methods that helps to use all defined specific Types with WS-Notification implementation (ws-notification-definition library). It means that each time a "AnyType" xml fragment is expected in the xml-schema files of WS-Notification specifications, then the desired specific type can be use instead. And following methods make it easier to do
| Constructor Summary | |
|---|---|
WsnSpecificTypeHelper()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Element |
getContentFromMessage(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Message messageContent)
method that get the content of a Message as a Element. |
static ContextPolicyType |
getContextPolicyType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
method that get - if the expected xml fragment exists -a ContextPolicyType
object from a SubscriptionPolicyType object. |
static com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType |
getEndpointReference(com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
Method used to get EndpointReferenceType object from
DestroyRegistration object |
static com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType |
getEndpointReference(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubObj)
Method used to get EndpointReferenceType object from
Unsubscribe object |
static ProcessPolicyType |
getProcessPolicyType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
method that get - if the expected xml fragment exists -a ProcessPolicyType
object from a SubscriptionPolicyType object. |
static ResourcesUuidType |
getResourcesUuidType(com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
Method used to get ResourcesUuidType object from
DestroyRegistration object |
static ResourcesUuidType |
getResourcesUuidType(com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
Method used to get ResourcesUuidType object from
ReferenceParametersType object |
static ResourcesUuidType |
getResourcesUuidType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Renew renewObj)
Method used to get ResourcesUuidType object from
Renew object |
static ResourcesUuidType |
getResourcesUuidType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubsObj)
Method used to get ResourcesUuidType object from
Unsubscribe object |
static SOAParameterType |
getSOAParameter(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType msgContent)
Method used to get SOAParameterType object from
QueryExpressionType object |
static SOAParameterType |
getSOAParameter(com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
Method used to get SOAParameterType object from
ReferenceParametersType object |
static TerminationTimeType |
getTerminationTimeFromSubscription(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP subscription)
method that get the termination time of a SubscriptionManagerRP as a TerminationTimeType. |
static java.lang.String |
getXpathExpression(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType messageContent)
method that get - if the expected xml fragment exists -a String
object from a QueryExpressionType object. |
static XsltStyleSheetType |
getXsltStyleSheetType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
method that get - if the expected xml fragment exists -a XsltStyleSheetType
object from a SubscriptionPolicyType object. |
static java.lang.Boolean |
isTopicSupported(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicType topic)
check if a given topic is a supported topic in the current context |
static void |
setContentToMessage(org.w3c.dom.Element eltValue,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Message content)
Method used to set an Element object into a Message object |
static void |
setContextPolicyType(ContextPolicyType contextPolicyObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
Method used to set an xml fragment representation of a ContextPolicyType object into a
SubscriptionPolicyType object |
static void |
setEndpointReference(com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType epr,
com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
Method used to set an xml fragment representation of a DestroyRegistration object into a
EndpointReferenceType object |
static void |
setEndpointReference(com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType epr,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubObj)
Method used to set an xml fragment representation of a Unsubscribe object into a
EndpointReferenceType object |
static void |
setProcessPolicyType(ProcessPolicyType processPolicyObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
Method used to set an xml fragment representation of a ProcessPolicyType object into a
SubscriptionPolicyType object |
static void |
setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
Method used to set an xml fragment representation of a ResourcesUuidType object into a
DestroyRegistration object |
static void |
setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
Method used to set an xml fragment representation of a ResourcesUuidType object into a
ReferenceParametersType object |
static void |
setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Renew renewObj)
Method used to set an xml fragment representation of a ResourcesUuidType object into a
Renew object |
static void |
setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubsObj)
Method used to set an xml fragment representation of a ResourcesUuidType object into a
ReferenceParametersType object |
static void |
setSOAParameter(SOAParameterType soaParamObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType msgContent)
Method used to set an xml fragment representation of a SOAParameterType object into a
QueryExpressionType object |
static void |
setSOAParameter(SOAParameterType soaParamObj,
com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
Method used to set an xml fragment representation of a SOAParameterType object into a
ReferenceParametersType object |
static void |
setSupported(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicType topic,
java.lang.Boolean support)
|
static void |
setTerminationTimeToSubscription(TerminationTimeType termTimeValue,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP subscription)
Method used to set an TerminationTimeType object into a SubscriptionManagerRP object |
static void |
setXpathExpressionsType(java.lang.String xpathsObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType messageContent)
Method used to set an xml fragment representation of a ProcessPolicyType object into a
SubscriptionPolicyType object |
static void |
setXsltStyleSheetType(XsltStyleSheetType transformPolicyObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
Method used to set an xml fragment representation of a XsltStyleSheetType object into a
SubscriptionPolicyType object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WsnSpecificTypeHelper()
| Method Detail |
|---|
public static SOAParameterType getSOAParameter(com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
throws WSNotificationExtensionException
SOAParameterType object from
ReferenceParametersType object
refParams - ReferenceParametersType object (see WS-Addressing)
SOAParameterType object
WSNotificationExtensionException
public static SOAParameterType getSOAParameter(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType msgContent)
throws WSNotificationExtensionException
SOAParameterType object from
QueryExpressionType object
msgContent - QueryExpressionType object
SOAParameterType object
WSNotificationExtensionException
public static void setSOAParameter(SOAParameterType soaParamObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType msgContent)
throws WSNotificationExtensionException
SOAParameterType object into a
QueryExpressionType object
soaParameter - SOAParameterType object whom the xml representation must be setmsgContent - QueryExpressionType object in which the xml representation must be set
WSNotificationExtensionException
public static void setSOAParameter(SOAParameterType soaParamObj,
com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
throws WSNotificationExtensionException
SOAParameterType object into a
ReferenceParametersType object
soaParameter - SOAParameterType object whom the xml representation must be setmsgContent - ReferenceParametersType object in which the xml representation must be set
WSNotificationExtensionException
public static com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType getEndpointReference(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubObj)
throws com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
EndpointReferenceType object from
Unsubscribe object
unsubObj - Unsubscribe object
EndpointReferenceType object
WSNotificationExtensionException
com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
public static com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType getEndpointReference(com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
throws com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
EndpointReferenceType object from
DestroyRegistration object
unsubObj - DestroyRegistration object
EndpointReferenceType object
WSNotificationExtensionException
com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
public static void setEndpointReference(com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType epr,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubObj)
throws com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
Unsubscribe object into a
EndpointReferenceType object
epr - EndpointReferenceType object whom the xml representation must be setunsubObj - Unsubscribe object in which the xml representation must be set
WSNotificationExtensionException
com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
public static void setEndpointReference(com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType epr,
com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
throws com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
DestroyRegistration object into a
EndpointReferenceType object
epr - EndpointReferenceType object whom the xml representation must be setdestRegObj - DestroyRegistration object in which the xml representation must be set
WSNotificationExtensionException
com.ebmwebsourcing.wsstar.addressing.definition.api.WSAddressingException
public static ResourcesUuidType getResourcesUuidType(com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
throws WSNotificationExtensionException
ResourcesUuidType object from
ReferenceParametersType object
refParams - ReferenceParametersType object
ResourcesUuidType object
WSNotificationExtensionException
public static ResourcesUuidType getResourcesUuidType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubsObj)
throws WSNotificationExtensionException
ResourcesUuidType object from
Unsubscribe object
unsubsObj - Unsubscribe object
ResourcesUuidType object
WSNotificationExtensionException
public static ResourcesUuidType getResourcesUuidType(com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
throws WSNotificationExtensionException
ResourcesUuidType object from
DestroyRegistration object
destRegObj - DestroyRegistration object
ResourcesUuidType object
WSNotificationExtensionException
public static ResourcesUuidType getResourcesUuidType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Renew renewObj)
throws WSNotificationExtensionException
ResourcesUuidType object from
Renew object
unsubsObj - Renew object
ResourcesUuidType object
WSNotificationExtensionException
public static void setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.addressing.definition.api.ReferenceParametersType refParams)
throws WSNotificationExtensionException
ResourcesUuidType object into a
ReferenceParametersType object
rUuidsObj - ResourcesUuidType object whom the xml representation must be setrefParams - ReferenceParametersType object in which the xml representation must be set
WSNotificationExtensionException
public static void setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Unsubscribe unsubsObj)
throws WSNotificationExtensionException
ResourcesUuidType object into a
ReferenceParametersType object
rUuidsObj - ResourcesUuidType object whom the xml representation must be setunsubsObj - Unsubscribe object in which the xml representation must be set
WSNotificationExtensionException
public static void setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.DestroyRegistration destRegObj)
throws WSNotificationExtensionException
ResourcesUuidType object into a
DestroyRegistration object
rUuidsObj - ResourcesUuidType object whom the xml representation must be setdestRegObj - DestroyRegistration object in which the xml representation must be set
WSNotificationExtensionException
public static void setResourcesUuidType(ResourcesUuidType rUuidsObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Renew renewObj)
throws WSNotificationExtensionException
ResourcesUuidType object into a
Renew object
rUuidsObj - ResourcesUuidType object whom the xml representation must be setrenewObj - Renew object in which the xml representation must be set
WSNotificationExtensionException
public static ProcessPolicyType getProcessPolicyType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
throws WSNotificationExtensionException
ProcessPolicyType
object from a SubscriptionPolicyType object.
subsPolicy - SubscriptionPolicyType object from which the xml representation is supposed to be found
ProcessPolicyType object
WSNotificationExtensionException
public static void setProcessPolicyType(ProcessPolicyType processPolicyObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
throws WSNotificationExtensionException
ProcessPolicyType object into a
SubscriptionPolicyType object
rUuidsObj - ProcessPolicyType object whom the xml representation must be setdestRegObj - SubscriptionPolicyType object in which the xml representation must be set
WSNotificationExtensionException
public static ContextPolicyType getContextPolicyType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
throws WSNotificationExtensionException
ContextPolicyType
object from a SubscriptionPolicyType object.
subsPolicy - SubscriptionPolicyType object from which the xml representation is supposed to be found
ContextPolicyType object
WSNotificationExtensionException
public static void setContextPolicyType(ContextPolicyType contextPolicyObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
throws WSNotificationExtensionException
ContextPolicyType object into a
SubscriptionPolicyType object
contextPolicyObj - ContextPolicyType object whom the xml representation must be setdestRegObj - SubscriptionPolicyType object in which the xml representation must be set
WSNotificationExtensionException
public static java.lang.String getXpathExpression(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType messageContent)
throws WSNotificationExtensionException
String
object from a QueryExpressionType object.
listOfObj - from which the xml representation is supposed to be found
String object
WSNotificationExtensionException
public static void setXpathExpressionsType(java.lang.String xpathsObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.QueryExpressionType messageContent)
throws WSNotificationExtensionException
ProcessPolicyType object into a
SubscriptionPolicyType object
xpathsObj - String object whom the xml representation must be setmessageContent - QueryExpressionType object in which the xml representation must be set
WSNotificationExtensionException
public static XsltStyleSheetType getXsltStyleSheetType(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
throws WSNotificationExtensionException
XsltStyleSheetType
object from a SubscriptionPolicyType object.
subsPolicy - SubscriptionPolicyType object from which the xml representation is supposed to be found
XsltStyleSheetType object
WSNotificationExtensionException
public static void setXsltStyleSheetType(XsltStyleSheetType transformPolicyObj,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionPolicyType subsPolicy)
throws WSNotificationExtensionException
XsltStyleSheetType object into a
SubscriptionPolicyType object
transformPolicyObj - XsltStyleSheetType object whom the xml representation must be setsubsPolicy - SubscriptionPolicyType object in which the xml representation must be set
WSNotificationExtensionExceptionpublic static org.w3c.dom.Element getContentFromMessage(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Message messageContent)
Message as a Element.
messageContent - from which the xml representation is supposed to be found
Element object
WSNotificationExtensionException
public static void setContentToMessage(org.w3c.dom.Element eltValue,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.Message content)
Element object into a Message object
eltValue - Element object whom the xml representation must be setcontent - Message object in which the xml representation must be set
WSNotificationExtensionException
public static TerminationTimeType getTerminationTimeFromSubscription(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP subscription)
throws WSNotificationExtensionException
SubscriptionManagerRP as a TerminationTimeType.
subscription - from which the xml representation is supposed to be found
XsltStyleSheetType object
WSNotificationExtensionException
public static void setTerminationTimeToSubscription(TerminationTimeType termTimeValue,
com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP subscription)
throws WSNotificationExtensionException
TerminationTimeType object into a SubscriptionManagerRP object
termTimeValue - TerminationTimeType object whom the xml representation must be setsubscription - SubscriptionManagerRP object which the xml representation must be set in
WSNotificationExtensionExceptionpublic static java.lang.Boolean isTopicSupported(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicType topic)
topic - TopicType object to check
public static void setSupported(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicType topic,
java.lang.Boolean support)
topic - support -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||