Class MessageReader
- java.lang.Object
-
- org.sblim.cimclient.internal.http.MessageReader
-
public class MessageReader extends java.lang.ObjectClass 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 voidclose()Closes the streamjava.lang.StringgetCharacterEncoding()Returns the character encodingHttpHeadergetHeader()Returns the http headerjava.io.InputStreamgetInputStream()Returns the input streamHttpServerMethodgetMethod()Returns the http server methodbooleanisChunkSupported()Returns the chunking support statebooleanisPersistentConnectionSupported()Returns the persistent connection support state
-
-
-
Constructor Detail
-
MessageReader
public MessageReader(java.io.InputStream pStream, int pTimeout) throws java.io.IOException, HttpExceptionCtor.- Parameters:
pStream- The input streampTimeout- The timeout for reading in entire header- Throws:
java.io.IOExceptionHttpException
-
-
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:
trueif persistent connection is supported
-
isChunkSupported
public boolean isChunkSupported()
Returns the chunking support state- Returns:
trueif chunking is supported
-
close
public void close() throws java.io.IOExceptionCloses the stream- Throws:
java.io.IOException
-
-