de.fzj.unicore.wsrflite.xmlbeans.wsn.impl
Class SubscriptionImpl
java.lang.Object
de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl
de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl
de.fzj.unicore.wsrflite.xmlbeans.wsn.impl.SubscriptionImpl
- All Implemented Interfaces:
- WSRFConstants, WSRFInstance, ResourceLifetime, ResourceProperties, ISubscription, WSResource
public class SubscriptionImpl
- extends WSResourceImpl
- implements ISubscription
implementation of the subscription ws-resource
- Author:
- schuller
| Fields inherited from interface de.fzj.unicore.wsrflite.WSRFConstants |
QUERY_EXPRESSION_DIALECT_XPATH, RPcurrentTimeQName, RPterminationTimeQName, WSRL_BASENS, WSRL_DESTROY, WSRL_DESTROY_PORT, WSRL_SCHEDULED, WSRL_SET_TERMTIME_PORT, WSRP_BASENS, WSRP_DELETE_RP_PORT, WSRP_GET_MULTIPLE_RP_PORT, WSRP_GET_RP_DOCUMENT_PORT, WSRP_GET_RP_PORT, WSRP_INSERT_RP_PORT, WSRP_PUT_RP_DOCUMENT_PORT, WSRP_QUERY_RP_PORT, WSRP_SET_RP_PORT, WSRP_UPDATE_RP_PORT |
| Methods inherited from class de.fzj.unicore.wsrflite.xmlbeans.impl.WSResourceImpl |
activate, DeleteResourceProperties, Destroy, fillResourcePropertyDocument, GetMultipleResourceProperties, GetResourceProperty, getResourceProperty, GetResourcePropertyDocument, getResourcePropertyObject, getResourcePropertyQNames, getResourcePropertyResponseDocument, getResourcePropertyXML, InsertResourceProperties, isModifyable, PutResourcePropertyDocument, QueryResourceProperties, SetResourceProperties, SetTerminationTime, UpdateResourceProperties |
| Methods inherited from class de.fzj.unicore.wsrflite.impl.WSRFInstanceImpl |
clearChangeFlag, clearSecurityContext, getDefaultLifetime, getSecurityContext, getServiceName, getTerminationTime, getUniqueID, hasChanged, isDestroyed, isExpired, passivate, postActivate, processMessages, setDirty, setHome, setSecurityContext, setServiceName, setTerminationTime, setUniqueID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.fzj.unicore.wsrflite.WSRFInstance |
activate, clearChangeFlag, clearSecurityContext, getSecurityContext, getServiceName, getTerminationTime, getUniqueID, hasChanged, isDestroyed, isExpired, passivate, postActivate, processMessages, setHome, setSecurityContext, setServiceName, setUniqueID |
logger
protected static final org.apache.log4j.Logger logger
ConsumerRefKey
public static final String ConsumerRefKey
FilterKey
public static final String FilterKey
MessageContentKey
public static final String MessageContentKey
SubscrPolicy
public static final String SubscrPolicy
CreationTimeKey
public static final String CreationTimeKey
NotificationProducerRefKey
public static final String NotificationProducerRefKey
SubscriptionImpl
public SubscriptionImpl()
initialise
public void initialise(String serviceName,
Map<String,Object> map)
throws Exception
- Description copied from class:
WSResourceImpl
- initialise this WS Resource
In subclasses, a call to super.initialise() is highly recommended!
- Specified by:
initialise in interface WSRFInstance- Overrides:
initialise in class WSResourceImpl
- Parameters:
serviceName - the service name this instance belongs tomap - - a Map containing initialisation params
- Throws:
Exception
processFilter
protected void processFilter(org.oasisOpen.docs.wsn.b2.FilterDocument filter)
destroy
public void destroy()
- resource-specific destruction: send message about our demise
- Specified by:
destroy in interface WSRFInstance- Overrides:
destroy in class WSRFInstanceImpl
getConsumerReference
public org.oasisOpen.docs.wsn.b2.ConsumerReferenceDocument getConsumerReference()
- Specified by:
getConsumerReference in interface ISubscription
getMessageContentFilter
public String getMessageContentFilter()
- Specified by:
getMessageContentFilter in interface ISubscription
getCreationTime
public org.oasisOpen.docs.wsn.b2.CreationTimeDocument getCreationTime()
- Specified by:
getCreationTime in interface ISubscription
getResourcePropertyDocumentQName
public QName getResourcePropertyDocumentQName()
- Description copied from class:
WSResourceImpl
- returns the QName of the resource properties document
- Specified by:
getResourcePropertyDocumentQName in class WSResourceImpl
- Returns:
match
public boolean match(Event event)
- check if an event fits our filter
- Specified by:
match in interface ISubscription
Copyright © 2010. All Rights Reserved.