Package com.sun.xml.ws.api.message
Interface MessageWritable
-
public interface MessageWritableA Message implementation may implement this interface as an alternative way to write the message into the OutputStream.- Author:
- shih-chang.chen@oracle.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentTypegetContentType()Gets the Content-type of this message.voidsetMTOMConfiguration(jakarta.xml.ws.soap.MTOMFeature mtomFeature)Passes configuration information to this message to ensure the proper wire format is created.ContentTypewriteTo(OutputStream out)Writes the XML infoset portion of this MessageContext (from <soap:Envelope> to </soap:Envelope>).
-
-
-
Method Detail
-
getContentType
ContentType getContentType()
Gets the Content-type of this message.- Returns:
- The MIME content type of this message
-
writeTo
ContentType writeTo(OutputStream out) throws IOException
Writes the XML infoset portion of this MessageContext (from <soap:Envelope> to </soap:Envelope>).- Parameters:
out- Must not be null. The caller is responsible for closing the stream, not the callee.- Returns:
- The MIME content type of this message (such as "application/xml"). This information is often ncessary by transport.
- Throws:
IOException- if aOutputStreamthrowsIOException.
-
setMTOMConfiguration
void setMTOMConfiguration(jakarta.xml.ws.soap.MTOMFeature mtomFeature)
Passes configuration information to this message to ensure the proper wire format is created. (from <soap:Envelope> to </soap:Envelope>).- Parameters:
mtomFeature- The standardWebServicesFeaturefor specifying the MTOM enablement and possibly threshold for the endpoint. This value may benull.
-
-