|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.ws.message.PropertySet
org.jvnet.ws.message.DistributedPropertySet
org.jvnet.ws.message.MessageContext
public abstract class MessageContext
MessageContext represents a container of a SOAP message and all the properties
including the transport headers.
MessageContext is a composite PropertySet that combines properties exposed from multiple
PropertySets into one.
This implementation allows one PropertySet to assemble
all properties exposed from other "satellite" PropertySets.
(A satellite may itself be a DistributedPropertySet, so
in general this can form a tree.)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jvnet.ws.message.PropertySet |
|---|
PropertySet.Accessor, PropertySet.Property, PropertySet.PropertyMap |
| Constructor Summary | |
|---|---|
MessageContext()
|
|
| Method Summary | |
|---|---|
abstract SOAPMessage |
getAsSOAPMessage()
Gets the SAAJ SOAPMessage representation of the SOAP message. |
abstract SOAPMessage |
getSOAPMessage()
Deprecated. use getAsSOAPMessage |
abstract ContentType |
writeTo(OutputStream out)
Writes the XML infoset portion of this MessageContext (from <soap:Envelope> to </soap:Envelope>). |
abstract ContentType |
writeTo(WritableByteChannel buffer)
The version of writeTo(OutputStream)
that writes to NIO ByteBuffer. |
| Methods inherited from class org.jvnet.ws.message.DistributedPropertySet |
|---|
addSatellite, addSatellite, copySatelliteInto, copySatelliteInto, get, getSatellite, put, remove, removeSatellite, supports |
| Methods inherited from class org.jvnet.ws.message.PropertySet |
|---|
containsKey, createMapView, getPropertyMap, parse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageContext()
| Method Detail |
|---|
public abstract SOAPMessage getAsSOAPMessage()
throws SOAPException
SOAPException
public abstract SOAPMessage getSOAPMessage()
throws SOAPException
SOAPException
public abstract ContentType writeTo(OutputStream out)
throws IOException
out - Must not be null. The caller is responsible for closing the stream,
not the callee.
IOException - if a OutputStream throws IOException.public abstract ContentType writeTo(WritableByteChannel buffer)
writeTo(OutputStream)
that writes to NIO ByteBuffer.
TODO: for the convenience of implementation, write
an adapter that wraps WritableByteChannel to OutputStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||