com.sun.xml.ws.handler
Class MessageUpdatableContext
java.lang.Object
com.sun.xml.ws.handler.MessageUpdatableContext
- All Implemented Interfaces:
- Map<String,Object>, javax.xml.ws.handler.MessageContext
- Direct Known Subclasses:
- LogicalMessageContextImpl, MessageHandlerContextImpl, SOAPMessageContextImpl
public abstract class MessageUpdatableContext
- extends Object
- implements javax.xml.ws.handler.MessageContext
The class represents a MessageContext(Properties) and also allows the Message to be modified.
This is extended by SOAPMessageContextImpl and LogicalMessageContextImpl.
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
packet
final Packet packet
MessageUpdatableContext
public MessageUpdatableContext(Packet packet)
- Creates a new instance of MessageUpdatableContext
updateMessage
abstract void updateMessage()
- Updates Message in the packet with user modifications
getPacketMessage
Message getPacketMessage()
- Updates Message in the packet with user modifications
returns the new packet's message
setPacketMessage
abstract void setPacketMessage(Message newMessage)
- Sets Message in the packet
Any user modifications done on previous Message are lost.
updatePacket
final void updatePacket()
- Updates the complete packet with user modfications to the message and
properties cahnges in MessageContext
getMessageContext
MessageContextImpl getMessageContext()
setScope
public void setScope(String name,
javax.xml.ws.handler.MessageContext.Scope scope)
- Specified by:
setScope
in interface javax.xml.ws.handler.MessageContext
getScope
public javax.xml.ws.handler.MessageContext.Scope getScope(String name)
- Specified by:
getScope
in interface javax.xml.ws.handler.MessageContext
clear
public void clear()
- Specified by:
clear
in interface Map<String,Object>
containsKey
public boolean containsKey(Object obj)
- Specified by:
containsKey
in interface Map<String,Object>
containsValue
public boolean containsValue(Object obj)
- Specified by:
containsValue
in interface Map<String,Object>
entrySet
public Set<Map.Entry<String,Object>> entrySet()
- Specified by:
entrySet
in interface Map<String,Object>
get
public Object get(Object obj)
- Specified by:
get
in interface Map<String,Object>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map<String,Object>
keySet
public Set<String> keySet()
- Specified by:
keySet
in interface Map<String,Object>
put
public Object put(String str,
Object obj)
- Specified by:
put
in interface Map<String,Object>
putAll
public void putAll(Map<? extends String,? extends Object> map)
- Specified by:
putAll
in interface Map<String,Object>
remove
public Object remove(Object obj)
- Specified by:
remove
in interface Map<String,Object>
size
public int size()
- Specified by:
size
in interface Map<String,Object>
values
public Collection<Object> values()
- Specified by:
values
in interface Map<String,Object>