railo.commons.net.http.httpclient4.entity
Class TemporaryStreamHttpEntity

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntity
      extended by railo.commons.net.http.httpclient4.entity.TemporaryStreamHttpEntity
All Implemented Interfaces:
org.apache.http.HttpEntity, Entity, Entity4

public class TemporaryStreamHttpEntity
extends org.apache.http.entity.AbstractHttpEntity
implements Entity4


Constructor Summary
TemporaryStreamHttpEntity(TemporaryStream ts, String contentType)
           
 
Method Summary
 long contentLength()
           
 String contentType()
           
 InputStream getContent()
           
 long getContentLength()
           
 boolean isRepeatable()
           
 boolean isStreaming()
           
 void writeTo(OutputStream os)
           
 
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.HttpEntity
consumeContent, getContentEncoding, getContentType, isChunked
 

Constructor Detail

TemporaryStreamHttpEntity

public TemporaryStreamHttpEntity(TemporaryStream ts,
                                 String contentType)
Method Detail

getContentLength

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

isRepeatable

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

writeTo

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

getContent

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

isStreaming

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

contentLength

public long contentLength()
Specified by:
contentLength in interface Entity

contentType

public String contentType()
Specified by:
contentType in interface Entity


Copyright © 2012 Railo