Package com.sun.xml.ws.handler
Class MessageHandlerContextImpl
- java.lang.Object
-
- com.sun.xml.ws.handler.MessageUpdatableContext
-
- com.sun.xml.ws.handler.MessageHandlerContextImpl
-
- All Implemented Interfaces:
MessageHandlerContext,jakarta.xml.ws.handler.MessageContext,Map<String,Object>
public class MessageHandlerContextImpl extends MessageUpdatableContext implements MessageHandlerContext
- Author:
- Rama Pulavarthi
-
-
Field Summary
-
Fields inherited from interface jakarta.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagegetMessage()Gets the message from this message contextWSDLPortgetPort()Gets theWSDLPortthat represents the port.Set<String>getRoles()SEIModelgetSEIModel()Provides access toSEIModel.WSBindinggetWSBinding()Provides access toWSBindingwhich can be used in various ways.voidsetMessage(Message message)Sets the message in this message context-
Methods inherited from class com.sun.xml.ws.handler.MessageUpdatableContext
clear, containsKey, containsValue, entrySet, get, 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 java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getMessage
public Message getMessage()
Description copied from interface:MessageHandlerContextGets the message from this message context- Specified by:
getMessagein interfaceMessageHandlerContext- Returns:
- The contained message; returns
nullif no message is present in this message context
-
setMessage
public void setMessage(Message message)
Description copied from interface:MessageHandlerContextSets the message in this message context- Specified by:
setMessagein interfaceMessageHandlerContext
-
getRoles
public Set<String> getRoles()
- Specified by:
getRolesin interfaceMessageHandlerContext- See Also:
SOAPMessageContext.getRoles()
-
getWSBinding
public WSBinding getWSBinding()
Description copied from interface:MessageHandlerContextProvides access toWSBindingwhich can be used in various ways. for example:WSBinding#getSOAPVersionto get SOAP version of the binding.WSBinding#isFeatureEnabled(AddressingFeature)to check if addressing is enabled- Specified by:
getWSBindingin interfaceMessageHandlerContext
-
getSEIModel
@Nullable public SEIModel getSEIModel()
Description copied from interface:MessageHandlerContextProvides access toSEIModel.- Specified by:
getSEIModelin interfaceMessageHandlerContext
-
getPort
@Nullable public WSDLPort getPort()
Description copied from interface:MessageHandlerContextGets theWSDLPortthat represents the port.- Specified by:
getPortin interfaceMessageHandlerContext- Returns:
- returns the WSDLModel of the port that the client/endpoint binds to. null when the Service is not configured with WSDL information.
-
-