org.jvnet.ws.message
Interface MessageContext
- All Superinterfaces:
- DistributedPropertySet, MessageContext, PropertySet
Deprecated.
@Deprecated
public interface MessageContext
- extends DistributedPropertySet, 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.)
- Author:
- shih-chang.chen@oracle.com
writeTo
ContentType writeTo(OutputStream out)
throws IOException
- Deprecated.
- Writes the XML infoset portion of this MessageContext
(from <soap:Envelope> to </soap:Envelope>).
- Specified by:
writeTo in interface MessageContext
- Parameters:
out - Must not be null. The caller is responsible for closing the stream,
not the callee.
- Returns:
- The MIME content type of the encoded message (such as "application/xml").
This information is often ncessary by transport.
- Throws:
IOException - if a OutputStream throws IOException.
getContentType
ContentType getContentType()
- Deprecated.
- Gets the Content-type of this message. For an out-bound message that this getContentType()
method returns a null, the Content-Type can be determined only by calling the writeTo
method to write the MessageContext to an OutputStream.
- Specified by:
getContentType in interface MessageContext
- Returns:
- The MIME content type of this message
Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.