com.sun.xml.ws.handler
Class MessageHandlerContextImpl

java.lang.Object
  extended by com.sun.xml.ws.handler.MessageUpdatableContext
      extended by com.sun.xml.ws.handler.MessageHandlerContextImpl
All Implemented Interfaces:
MessageHandlerContext, Map<String,Object>, javax.xml.ws.handler.MessageContext

public class MessageHandlerContextImpl
extends MessageUpdatableContext
implements MessageHandlerContext


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.xml.ws.handler.MessageContext
javax.xml.ws.handler.MessageContext.Scope
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class com.sun.xml.ws.handler.MessageUpdatableContext
packet
 
Fields inherited from interface javax.xml.ws.handler.MessageContext
HTTP_REQUEST_HEADERS, HTTP_REQUEST_METHOD, HTTP_RESPONSE_CODE, HTTP_RESPONSE_HEADERS, INBOUND_MESSAGE_ATTACHMENTS, MESSAGE_OUTBOUND_PROPERTY, OUTBOUND_MESSAGE_ATTACHMENTS, PATH_INFO, QUERY_STRING, REFERENCE_PARAMETERS, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE, WSDL_DESCRIPTION, WSDL_INTERFACE, WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE
 
Constructor Summary
MessageHandlerContextImpl(SEIModel seiModel, WSBinding binding, WSDLPort wsdlModel, Packet packet, Set<String> roles)
           
 
Method Summary
 Message getMessage()
          Gets the message from this message context
 WSDLPort getPort()
          Gets the WSDLPort that represents the port.
 Set<String> getRoles()
           
 SEIModel getSEIModel()
          Provides access to SEIModel.
 WSBinding getWSBinding()
          Provides access to WSBinding which can be used in various ways.
 void setMessage(Message message)
          Sets the message in this message context
(package private)  void setPacketMessage(Message newMessage)
          Sets Message in the packet Any user modifications done on previous Message are lost.
(package private)  void updateMessage()
          Updates Message in the packet with user modifications
 
Methods inherited from class com.sun.xml.ws.handler.MessageUpdatableContext
clear, containsKey, containsValue, entrySet, get, getMessageContext, getPacketMessage, getScope, isEmpty, keySet, put, putAll, remove, setScope, size, updatePacket, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.ws.handler.MessageContext
getScope, setScope
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

MessageHandlerContextImpl

public MessageHandlerContextImpl(@Nullable
                                 SEIModel seiModel,
                                 WSBinding binding,
                                 @Nullable
                                 WSDLPort wsdlModel,
                                 Packet packet,
                                 Set<String> roles)
Method Detail

getMessage

public Message getMessage()
Description copied from interface: MessageHandlerContext
Gets the message from this message context

Specified by:
getMessage in interface MessageHandlerContext
Returns:
The contained message; returns null if no message is present in this message context

setMessage

public void setMessage(Message message)
Description copied from interface: MessageHandlerContext
Sets the message in this message context

Specified by:
setMessage in interface MessageHandlerContext

getRoles

public Set<String> getRoles()
Specified by:
getRoles in interface MessageHandlerContext
See Also:
SOAPMessageContext.getRoles()

getWSBinding

public WSBinding getWSBinding()
Description copied from interface: MessageHandlerContext
Provides access to WSBinding which can be used in various ways. for example: WSBinding#getSOAPVersion to get SOAP version of the binding. WSBinding#isFeatureEnabled(AddressingFeature) to check if addressing is enabled

Specified by:
getWSBinding in interface MessageHandlerContext

getSEIModel

@Nullable
public SEIModel getSEIModel()
Description copied from interface: MessageHandlerContext
Provides access to SEIModel.

Specified by:
getSEIModel in interface MessageHandlerContext

getPort

@Nullable
public WSDLPort getPort()
Description copied from interface: MessageHandlerContext
Gets the WSDLPort that represents the port.

Specified by:
getPort in interface MessageHandlerContext
Returns:
returns the WSDLModel of the port that the client/endpoint binds to. null when the Service is not configured with WSDL information.

updateMessage

void updateMessage()
Description copied from class: MessageUpdatableContext
Updates Message in the packet with user modifications

Specified by:
updateMessage in class MessageUpdatableContext

setPacketMessage

void setPacketMessage(Message newMessage)
Description copied from class: MessageUpdatableContext
Sets Message in the packet Any user modifications done on previous Message are lost.

Specified by:
setPacketMessage in class MessageUpdatableContext