org.mule.providers.http
Class HttpStreamMessageAdapter

java.lang.Object
  extended byorg.mule.providers.AbstractMessageAdapter
      extended byorg.mule.providers.streaming.StreamMessageAdapter
          extended byorg.mule.providers.http.HttpStreamMessageAdapter
All Implemented Interfaces:
Serializable, ThreadSafeAccess, UMOMessageAdapter, UMOStreamMessageAdapter

public class HttpStreamMessageAdapter
extends StreamMessageAdapter

A HttpStream adapter that can be used with the HttpClientMessageDispatcher who knows when to release the Http Connection.

See Also:
Serialized Form

Field Summary
protected  org.apache.commons.httpclient.HttpMethod httpMethod
           
 
Fields inherited from class org.mule.providers.streaming.StreamMessageAdapter
handler, in, out
 
Fields inherited from class org.mule.providers.AbstractMessageAdapter
attachments, DEFAULT_FAILFAST, encoding, exceptionPayload, id, logger, properties, READ, WRITE
 
Constructor Summary
HttpStreamMessageAdapter(InputStream in)
           
HttpStreamMessageAdapter(InputStream in, OutputStream out)
           
HttpStreamMessageAdapter(InputStream in, OutputStream out, OutputHandler handler)
           
HttpStreamMessageAdapter(OutputHandler handler)
           
HttpStreamMessageAdapter(OutputStream out, OutputHandler handler)
           
 
Method Summary
 org.apache.commons.httpclient.HttpMethod getHttpMethod()
           
 void release()
          The release method is called by Mule to notify this adapter that it is no longer needed.
 void setHttpMethod(org.apache.commons.httpclient.HttpMethod httpMethod)
           
 
Methods inherited from class org.mule.providers.streaming.StreamMessageAdapter
getInputStream, getOutputHandler, getOutputStream, getPayload, getPayloadAsBytes, getPayloadAsString, newThreadCopy, setOutputHandler, write
 
Methods inherited from class org.mule.providers.AbstractMessageAdapter
addAttachment, addProperties, assertAccess, clearProperties, convertToBytes, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getPayloadAsString, getProperty, getProperty, getPropertyNames, getReplyTo, getStringProperty, getUniqueId, isDisabled, newException, removeAttachment, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setReplyTo, setStringProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.umo.provider.UMOMessageAdapter
addAttachment, addProperties, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getPayloadAsString, getProperty, getProperty, getPropertyNames, getReplyTo, getStringProperty, getUniqueId, removeAttachment, removeProperty, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setReplyTo, setStringProperty
 

Field Detail

httpMethod

protected volatile org.apache.commons.httpclient.HttpMethod httpMethod
Constructor Detail

HttpStreamMessageAdapter

public HttpStreamMessageAdapter(InputStream in)

HttpStreamMessageAdapter

public HttpStreamMessageAdapter(InputStream in,
                                OutputStream out)

HttpStreamMessageAdapter

public HttpStreamMessageAdapter(OutputHandler handler)

HttpStreamMessageAdapter

public HttpStreamMessageAdapter(OutputStream out,
                                OutputHandler handler)

HttpStreamMessageAdapter

public HttpStreamMessageAdapter(InputStream in,
                                OutputStream out,
                                OutputHandler handler)
Method Detail

getHttpMethod

public org.apache.commons.httpclient.HttpMethod getHttpMethod()

setHttpMethod

public void setHttpMethod(org.apache.commons.httpclient.HttpMethod httpMethod)

release

public void release()
Description copied from class: StreamMessageAdapter
The release method is called by Mule to notify this adapter that it is no longer needed. This method can be used to release any resources that a custom StreamAdapter may have associated with it.

Specified by:
release in interface UMOStreamMessageAdapter
Overrides:
release in class StreamMessageAdapter


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.