class LogicalMessageImpl extends Object implements LogicalMessage
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.
Message
,
LogicalMessageContextImpl
Modifier and Type | Field and Description |
---|---|
protected BindingContext |
defaultJaxbContext |
Constructor and Description |
---|
LogicalMessageImpl(BindingContext defaultJaxbContext,
Packet packet) |
Modifier and Type | Method and Description |
---|---|
Message |
getMessage(HeaderList headers,
AttachmentSet attachments,
WSBinding binding)
This should be called by first checking if the payload is modified.
|
Source |
getPayload() |
Object |
getPayload(BindingContext context) |
Object |
getPayload(JAXBContext context) |
boolean |
isPayloadModifed() |
void |
setPayload(Object payload,
BindingContext context) |
void |
setPayload(Object payload,
JAXBContext context) |
void |
setPayload(Source payload) |
protected BindingContext defaultJaxbContext
public LogicalMessageImpl(BindingContext defaultJaxbContext, Packet packet)
public Source getPayload()
getPayload
in interface LogicalMessage
public void setPayload(Source payload)
setPayload
in interface LogicalMessage
public Object getPayload(BindingContext context)
public Object getPayload(JAXBContext context)
getPayload
in interface LogicalMessage
public void setPayload(Object payload, BindingContext context)
public void setPayload(Object payload, JAXBContext context)
setPayload
in interface LogicalMessage
public boolean isPayloadModifed()
public Message getMessage(HeaderList headers, AttachmentSet attachments, WSBinding binding)
headers
- attachments
- binding
- Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.