public class EmptyHttpEntity extends org.apache.http.entity.AbstractHttpEntity implements Entity4
Constructor and Description |
---|
EmptyHttpEntity(String contentType)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
long |
contentLength() |
String |
contentType() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream os) |
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
public EmptyHttpEntity(String contentType)
contentType
- public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
public void writeTo(OutputStream os)
writeTo
in interface org.apache.http.HttpEntity
public InputStream getContent() throws IOException, IllegalStateException
getContent
in interface org.apache.http.HttpEntity
IOException
IllegalStateException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
public long contentLength()
contentLength
in interface Entity
public String contentType()
contentType
in interface Entity
Copyright © 2015 Lucee