org.ws4d.java.message.eventing
Class SubscribeMessage

java.lang.Object
  extended by org.ws4d.java.types.UnknownDataContainer
      extended by org.ws4d.java.message.Message
          extended by org.ws4d.java.message.eventing.SubscribeMessage
All Implemented Interfaces:
DPWSMessageConstants

public class SubscribeMessage
extends Message


Field Summary
static URI ACTION
           
 
Fields inherited from class org.ws4d.java.message.Message
MULTICAST_ROUTING_SCHEME, UNICAST_ROUTING_SCHEME, UNKNOWN_ROUTING_SCHEME
 
Fields inherited from interface org.ws4d.java.constants.DPWSMessageConstants
BYE_MESSAGE, FAULT_MESSAGE, GET_MESSAGE, GET_METADATA_MESSAGE, GET_METADATA_RESPONSE_MESSAGE, GET_RESPONSE_MESSAGE, GET_STATUS_MESSAGE, GET_STATUS_RESPONSE_MESSAGE, HELLO_MESSAGE, INVOKE_MESSAGE, MESSAGE_PROPERTY_DATA, PROBE_MATCHES_MESSAGE, PROBE_MESSAGE, RENEW_MESSAGE, RENEW_RESPONSE_MESSAGE, RESOLVE_MATCHES_MESSAGE, RESOLVE_MESSAGE, SUBSCRIBE_MESSAGE, SUBSCRIBE_RESPONSE_MESSAGE, SUBSCRIPTION_END_MESSAGE, UNKNOWN_MESSAGE, UNSUBSCRIBE_MESSAGE, UNSUBSCRIBE_RESPONSE_MESSAGE
 
Constructor Summary
SubscribeMessage(SOAPHeader header)
           
SubscribeMessage(SOAPHeader header, Delivery delivery)
           
SubscribeMessage(java.lang.String communicationManagerId)
          Creates a new Subscribe message containing a SOAPHeader with the appropriate action property set and a unique message ID property.
 
Method Summary
 Delivery getDelivery()
           
 EndpointReference getEndTo()
           
 EventSink getEventSink()
           
 java.lang.String getExpires()
           
 Filter getFilter()
           
 int getType()
          Type of message.
 void setDelivery(Delivery delivery)
           
 void setEndTo(EndpointReference endTo)
           
 void setEventSink(EventSink eventSink)
           
 void setExpires(java.lang.String expires)
           
 void setFilter(Filter filter)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ws4d.java.message.Message
getAction, getAppSequence, getCertificate, getHeader, getMessageId, getPrivateKey, getProtocolInfo, getRelatesTo, getReplyTo, getRoutingScheme, getTargetAddress, getTargetXAddressInfo, getTo, isInbound, isSecure, setCertificate, setInbound, setPrivateKey, setProtocolInfo, setResponseTo, setResponseTo, setRoutingScheme, setSecure, setTargetXAddressInfo
 
Methods inherited from class org.ws4d.java.types.UnknownDataContainer
addUnknownAttribute, addUnknownElement, getUnknownAttribute, getUnknownAttributes, getUnknownElement, getUnknownElements, getUnknownElements, setUnknownAttributes, setUnknownElements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION

public static final URI ACTION
Constructor Detail

SubscribeMessage

public SubscribeMessage(java.lang.String communicationManagerId)
Creates a new Subscribe message containing a SOAPHeader with the appropriate action property set and a unique message ID property. All other header- and eventing-related fields are empty and it is the caller's responsibility to fill them with suitable values.


SubscribeMessage

public SubscribeMessage(SOAPHeader header)
Parameters:
header -

SubscribeMessage

public SubscribeMessage(SOAPHeader header,
                        Delivery delivery)
Parameters:
header -
delivery -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Message

getType

public int getType()
Description copied from class: Message
Type of message.

Specified by:
getType in class Message
Returns:
type.

getDelivery

public Delivery getDelivery()

getEndTo

public EndpointReference getEndTo()

getFilter

public Filter getFilter()

setEndTo

public void setEndTo(EndpointReference endTo)
Parameters:
endTo - the endTo to set

setDelivery

public void setDelivery(Delivery delivery)
Parameters:
delivery - the delivery to set

getExpires

public java.lang.String getExpires()
Returns:
the expires

setExpires

public void setExpires(java.lang.String expires)
Parameters:
expires - the expires to set

setFilter

public void setFilter(Filter filter)
Parameters:
filter - the filter to set

setEventSink

public void setEventSink(EventSink eventSink)
Parameters:
eventSink -

getEventSink

public EventSink getEventSink()
Returns: