com.sun.xml.ws.handler
Class LogicalMessageImpl

java.lang.Object
  extended by 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

Field Summary
protected  BindingContext defaultJaxbContext
           
 
Constructor Summary
LogicalMessageImpl(BindingContext defaultJaxbContext, Packet packet)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultJaxbContext

protected BindingContext defaultJaxbContext
Constructor Detail

LogicalMessageImpl

public LogicalMessageImpl(BindingContext defaultJaxbContext,
                          Packet packet)
Method Detail

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.