Class MessageReader
- java.lang.Object
-
- org.sblim.cimclient.internal.http.MessageReader
-
public class MessageReader extends java.lang.Object
Class MessageReader is responsible for reading http messages
-
-
Constructor Summary
Constructors Constructor Description MessageReader(java.io.InputStream pStream, int pTimeout)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the streamjava.lang.String
getCharacterEncoding()
Returns the character encodingHttpHeader
getHeader()
Returns the http headerjava.io.InputStream
getInputStream()
Returns the input streamHttpServerMethod
getMethod()
Returns the http server methodboolean
isChunkSupported()
Returns the chunking support stateboolean
isPersistentConnectionSupported()
Returns the persistent connection support state
-
-
-
Constructor Detail
-
MessageReader
public MessageReader(java.io.InputStream pStream, int pTimeout) throws java.io.IOException, HttpException
Ctor.- Parameters:
pStream
- The input streampTimeout
- The timeout for reading in entire header- Throws:
java.io.IOException
HttpException
-
-
Method Detail
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
Returns the character encoding- Returns:
- The character encoding
-
getHeader
public HttpHeader getHeader()
Returns the http header- Returns:
- The http header
-
getMethod
public HttpServerMethod getMethod()
Returns the http server method- Returns:
- The http server method
-
getInputStream
public java.io.InputStream getInputStream()
Returns the input stream- Returns:
- The input stream
-
isPersistentConnectionSupported
public boolean isPersistentConnectionSupported()
Returns the persistent connection support state- Returns:
true
if persistent connection is supported
-
isChunkSupported
public boolean isChunkSupported()
Returns the chunking support state- Returns:
true
if chunking is supported
-
close
public void close() throws java.io.IOException
Closes the stream- Throws:
java.io.IOException
-
-