Class MultipartNoLengthCheckHttpEntity
- java.lang.Object
-
- no.digipost.api.client.internal.http.MultipartNoLengthCheckHttpEntity
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
public class MultipartNoLengthCheckHttpEntity extends java.lang.Object implements org.apache.http.HttpEntity
-
-
Constructor Summary
Constructors Constructor Description MultipartNoLengthCheckHttpEntity(org.apache.http.HttpEntity entity)
-
Method Summary
Modifier and Type Method Description void
consumeContent()
Deprecated.java.io.InputStream
getContent()
org.apache.http.Header
getContentEncoding()
long
getContentLength()
org.apache.http.Header
getContentType()
boolean
isChunked()
boolean
isRepeatable()
boolean
isStreaming()
void
writeTo(java.io.OutputStream outputStream)
-
-
-
Method Detail
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interfaceorg.apache.http.HttpEntity
-
isChunked
public boolean isChunked()
- Specified by:
isChunked
in interfaceorg.apache.http.HttpEntity
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
-
getContentType
public org.apache.http.Header getContentType()
- Specified by:
getContentType
in interfaceorg.apache.http.HttpEntity
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
-
getContent
public java.io.InputStream getContent() throws java.io.IOException, java.lang.IllegalStateException
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
java.lang.IllegalStateException
-
writeTo
public void writeTo(java.io.OutputStream outputStream) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming()
- Specified by:
isStreaming
in interfaceorg.apache.http.HttpEntity
-
consumeContent
@Deprecated public void consumeContent() throws java.io.IOException
Deprecated.- Specified by:
consumeContent
in interfaceorg.apache.http.HttpEntity
- Throws:
java.io.IOException
-
-