org.ws4d.java.message.discovery
Class HelloMessage

java.lang.Object
  extended by org.ws4d.java.types.UnknownDataContainer
      extended by org.ws4d.java.message.Message
          extended by org.ws4d.java.message.discovery.DiscoveryMessage
              extended by org.ws4d.java.message.discovery.HelloMessage
All Implemented Interfaces:
DPWSMessageConstants

public class HelloMessage
extends DiscoveryMessage


Field Summary
 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
HelloMessage(DiscoveryData discoveryData, java.lang.String communicationManagerId)
           
HelloMessage(SOAPHeader header, DiscoveryData discoveryData)
           
HelloMessage(java.lang.String communicationManagerId)
          Creates a new Hello message containing a SOAPHeader with the appropriate action property set, the default to property for ad-hoc mode ( WSDConstants.WSD_TO) and a unique message ID property.
 
Method Summary
 int getType()
          Type of message.
 
Methods inherited from class org.ws4d.java.message.discovery.DiscoveryMessage
createDiscoveryHeader, getDiscoveryData, getEndpointReference, getMetadataVersion, getScopes, getTypes, getXAddressInfoSet, setDiscoveryData, 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 URI ACTION
Constructor Detail

HelloMessage

public HelloMessage(java.lang.String communicationManagerId)
Creates a new Hello message containing a SOAPHeader with the appropriate action property set, the default to property for ad-hoc mode ( WSDConstants.WSD_TO) and a unique message ID property. All other header- and discovery-related fields are empty and it is the caller's responsibility to fill them with suitable values.


HelloMessage

public HelloMessage(DiscoveryData discoveryData,
                    java.lang.String communicationManagerId)
Parameters:
discoveryData -

HelloMessage

public HelloMessage(SOAPHeader header,
                    DiscoveryData discoveryData)
Parameters:
header -
discoveryData -
Method Detail

getType

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

Specified by:
getType in class Message
Returns:
type.