Celtix User APIs

org.objectweb.celtix.context
Interface StreamMessageContext

All Superinterfaces:
Map<String,Object>, javax.xml.ws.handler.MessageContext

public interface StreamMessageContext
extends javax.xml.ws.handler.MessageContext

A MessageContext that provide access to the underlying streams involved in a message exchange


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.xml.ws.handler.MessageContext
javax.xml.ws.handler.MessageContext.Scope
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from interface javax.xml.ws.handler.MessageContext
HTTP_REQUEST_HEADERS, HTTP_REQUEST_METHOD, HTTP_RESPONSE_CODE, HTTP_RESPONSE_HEADERS, MESSAGE_ATTACHMENTS, MESSAGE_OUTBOUND_PROPERTY, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE, SERVLET_SESSION, WSDL_DESCRIPTION, WSDL_INTERFACE, WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE
 
Method Summary
 InputStream getInputStream()
          Get the underlying InputStream from which the incoming message can be read
 OutputStream getOutputStream()
          Get the underlying OutputStream from which the outgoing message can be read
 void setInputStream(InputStream in)
          Set the InputStream to read the message from.
 void setOutputStream(OutputStream in)
          Set the OutputStream to write the message to.
 
Methods inherited from interface javax.xml.ws.handler.MessageContext
getScope, setScope
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getInputStream

InputStream getInputStream()
Get the underlying InputStream from which the incoming message can be read

Returns:
the InputStream or null if there is no InputStream available (for example on the outbound leg of a message exchange.

setInputStream

void setInputStream(InputStream in)
Set the InputStream to read the message from. Can be used to replace the InputStream from which the message is read. This can be used to carry out some sort of transformation on the data before it is sent over the network.


getOutputStream

OutputStream getOutputStream()
Get the underlying OutputStream from which the outgoing message can be read

Returns:
the OutputStream or null if there is no OutputStream available (for example on the inbound leg of a message exchange.

setOutputStream

void setOutputStream(OutputStream in)
Set the OutputStream to write the message to. Can be used to replace the OutputStream to which the message is writetn. This can be used to carry out some sort of transformation on the data as it is being read from the network.


Celtix User APIs