org.apache.axis2.transport.http.server
Class OutputBuffer

java.lang.Object
  extended by org.apache.axis2.transport.http.server.OutputBuffer
All Implemented Interfaces:
OutTransportInfo, org.apache.http.HttpEntity

public class OutputBuffer
extends Object
implements OutTransportInfo, org.apache.http.HttpEntity


Constructor Summary
OutputBuffer()
           
OutputBuffer(int initialCapacity)
           
 
Method Summary
 void consumeContent()
           
 InputStream getContent()
           
 org.apache.http.Header getContentEncoding()
           
 long getContentLength()
           
 org.apache.http.Header getContentType()
           
 OutputStream getOutputStream()
           
 boolean isChunked()
           
 boolean isRepeatable()
           
 boolean isStreaming()
           
 void setChunked(boolean b)
           
 void setContentType(String contentType)
           
 String toString()
           
 void writeTo(OutputStream outstream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputBuffer

public OutputBuffer(int initialCapacity)

OutputBuffer

public OutputBuffer()
Method Detail

getOutputStream

public OutputStream getOutputStream()

getContent

public InputStream getContent()
                       throws IOException,
                              IllegalStateException
Specified by:
getContent in interface org.apache.http.HttpEntity
Throws:
IOException
IllegalStateException

setContentType

public void setContentType(String contentType)
Specified by:
setContentType in interface OutTransportInfo

getContentType

public org.apache.http.Header getContentType()
Specified by:
getContentType in interface org.apache.http.HttpEntity

consumeContent

public void consumeContent()
                    throws IOException
Specified by:
consumeContent in interface org.apache.http.HttpEntity
Throws:
IOException

getContentEncoding

public org.apache.http.Header getContentEncoding()
Specified by:
getContentEncoding in interface org.apache.http.HttpEntity

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface org.apache.http.HttpEntity

isChunked

public boolean isChunked()
Specified by:
isChunked in interface org.apache.http.HttpEntity

setChunked

public void setChunked(boolean b)

isRepeatable

public boolean isRepeatable()
Specified by:
isRepeatable in interface org.apache.http.HttpEntity

isStreaming

public boolean isStreaming()
Specified by:
isStreaming in interface org.apache.http.HttpEntity

writeTo

public void writeTo(OutputStream outstream)
             throws IOException
Specified by:
writeTo in interface org.apache.http.HttpEntity
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object