com.sun.xml.ws.handler
Class LogicalMessageImpl
java.lang.Object
com.sun.xml.ws.handler.LogicalMessageImpl
- All Implemented Interfaces:
- LogicalMessage
class LogicalMessageImpl
- extends Object
- implements LogicalMessage
Implementation of LogicalMessage
. This class implements the methods
used by LogicalHandlers to get/set the request or response either
as a JAXB object or as javax.xml.transform.Source.
The Message
that is passed into the constructor
is used to retrieve the payload of the request or response.
- See Also:
Message
,
LogicalMessageContextImpl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultJaxbContext
protected BindingContext defaultJaxbContext
LogicalMessageImpl
public LogicalMessageImpl(BindingContext defaultJaxbContext,
Packet packet)
getPayload
public Source getPayload()
- Specified by:
getPayload
in interface LogicalMessage
setPayload
public void setPayload(Source payload)
- Specified by:
setPayload
in interface LogicalMessage
getPayload
public Object getPayload(BindingContext context)
getPayload
public Object getPayload(JAXBContext context)
- Specified by:
getPayload
in interface LogicalMessage
setPayload
public void setPayload(Object payload,
BindingContext context)
setPayload
public void setPayload(Object payload,
JAXBContext context)
- Specified by:
setPayload
in interface LogicalMessage
isPayloadModifed
public boolean isPayloadModifed()
getMessage
public Message getMessage(HeaderList headers,
AttachmentSet attachments,
WSBinding binding)
- This should be called by first checking if the payload is modified.
- Parameters:
headers
- attachments
- binding
-
- Returns:
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.