Class MultipartNoLengthCheckHttpEntity
- java.lang.Object
-
- no.digipost.api.client.internal.http.MultipartNoLengthCheckHttpEntity
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
public class MultipartNoLengthCheckHttpEntity extends Object implements org.apache.http.HttpEntity
-
-
Constructor Summary
Constructors Constructor Description MultipartNoLengthCheckHttpEntity(org.apache.http.HttpEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidconsumeContent()Deprecated.InputStreamgetContent()org.apache.http.HeadergetContentEncoding()longgetContentLength()org.apache.http.HeadergetContentType()booleanisChunked()booleanisRepeatable()booleanisStreaming()voidwriteTo(OutputStream outputStream)
-
-
-
Method Detail
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatablein interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()
- Specified by:
isChunkedin interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentTypein interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncodingin interfaceorg.apache.http.HttpEntity
-
getContent
public InputStream getContent() throws IOException, IllegalStateException
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Throws:
IOExceptionIllegalStateException
-
writeTo
public void writeTo(OutputStream outputStream) throws IOException
- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Throws:
IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreamingin interfaceorg.apache.http.HttpEntity
-
consumeContent
@Deprecated public void consumeContent() throws IOException
Deprecated.- Specified by:
consumeContentin interfaceorg.apache.http.HttpEntity- Throws:
IOException
-
-