Class MessageReader
java.lang.Object
org.sblim.cimclient.internal.http.MessageReader
Class MessageReader is responsible for reading http messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the streamReturns the character encodingReturns the http headerReturns the input streamReturns the http server methodbooleanReturns the chunking support statebooleanReturns the persistent connection support state
-
Constructor Details
-
MessageReader
Ctor.- Parameters:
pStream- The input streampTimeout- The timeout for reading in entire header- Throws:
IOExceptionHttpException
-
-
Method Details
-
getCharacterEncoding
Returns the character encoding- Returns:
- The character encoding
-
getHeader
Returns the http header- Returns:
- The http header
-
getMethod
Returns the http server method- Returns:
- The http server method
-
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
Closes the stream- Throws:
IOException
-