Class StreamContainer
- java.lang.Object
-
- co.arago.hiro.client.util.httpclient.ContentHeaderHandler
-
- co.arago.hiro.client.util.httpclient.StreamContainer
-
public class StreamContainer extends ContentHeaderHandler
Contains the inputStream for the body and decodes the headers Content-Type and Content-Length for further information about that stream.
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.util.httpclient.ContentHeaderHandler
boundary, charset, contentLength, mediaType
-
-
Constructor Summary
Constructors Constructor Description StreamContainer(java.io.InputStream inputStream, java.lang.String mediaType, java.nio.charset.Charset charset, java.lang.Long contentLength)Constructor used when streams have to be sent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetInputStream()-
Methods inherited from class co.arago.hiro.client.util.httpclient.ContentHeaderHandler
contentIsJson, getBoundary, getCharset, getContentLength, getContentType, getMediaType, hasContentType, setBoundary, setCharset, setContentLength, setContentType, setMediaType
-
-
-
-
Constructor Detail
-
StreamContainer
public StreamContainer(java.io.InputStream inputStream, java.lang.String mediaType, java.nio.charset.Charset charset, java.lang.Long contentLength)Constructor used when streams have to be sent.- Parameters:
inputStream- The inputStream with the data.mediaType- The mime type for the data.charset- The charset - if any. Can be null.contentLength- The length of the content - if any. Can be null.
-
-