org.ws4d.java.message.metadata
Class GetResponseMessage

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

public class GetResponseMessage
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
GetResponseMessage(SOAPHeader header)
           
GetResponseMessage(java.lang.String communicationManagerId)
          Creates a new GetMetadataResponse message containing a SOAPHeader with the appropriate action property set.
 
Method Summary
 void addCustomizeMetaData(CustomizeMData mdata)
           
 void addRelationship(RelationshipMData relationship, ConstantsHelper helper)
           
 java.lang.String getCustomMdata()
           
 CustomizeMData getCustomMdataInstance()
           
 HostMData getHost()
           
 DataStructure getHosted()
           
 RelationshipMData getRelationship()
           
 ThisDeviceMData getThisDevice()
           
 ThisModelMData getThisModel()
           
 int getType()
          Type of message.
 void setCustomMData(java.lang.String mdataCustom)
           
 void setThisDevice(ThisDeviceMData thisDevice)
           
 void setThisModel(ThisModelMData thisModel)
           
 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

GetResponseMessage

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


GetResponseMessage

public GetResponseMessage(SOAPHeader header)
Parameters:
header -
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.

getThisDevice

public ThisDeviceMData getThisDevice()

getThisModel

public ThisModelMData getThisModel()

getRelationship

public RelationshipMData getRelationship()

getCustomMdata

public java.lang.String getCustomMdata()
Returns:
String contains the customize metadata

getHost

public HostMData getHost()

getHosted

public DataStructure getHosted()

setThisModel

public void setThisModel(ThisModelMData thisModel)
Parameters:
thisModel - the thisModel to set

setThisDevice

public void setThisDevice(ThisDeviceMData thisDevice)
Parameters:
thisDevice - the thisDevice to set

setCustomMData

public void setCustomMData(java.lang.String mdataCustom)
Parameters:
mdataCustom - String which contains the new user added metadata

addRelationship

public void addRelationship(RelationshipMData relationship,
                            ConstantsHelper helper)
Parameters:
relationship - the relationship to set

addCustomizeMetaData

public void addCustomizeMetaData(CustomizeMData mdata)
Parameters:
mdata - instance of the type CustomizeMData

getCustomMdataInstance

public CustomizeMData getCustomMdataInstance()
Returns:
the instance of the typ CustomizeMData