org.sblim.cimclient.internal.http
Class MessageReader

java.lang.Object
  extended by org.sblim.cimclient.internal.http.MessageReader

public class MessageReader
extends Object

Class MessageReader is responsible for reading http messages


Constructor Summary
MessageReader(InputStream pStream, int pTimeout)
          Ctor.
 
Method Summary
 void close()
          Closes the stream
 String getCharacterEncoding()
          Returns the character encoding
 HttpHeader getHeader()
          Returns the http header
 InputStream getInputStream()
          Returns the input stream
 HttpServerMethod getMethod()
          Returns the http server method
 boolean isChunkSupported()
          Returns the chunking support state
 boolean isPersistentConnectionSupported()
          Returns the persistent connection support state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageReader

public MessageReader(InputStream pStream,
                     int pTimeout)
              throws IOException,
                     HttpException
Ctor.

Parameters:
pStream - The input stream
pTimeout - The timeout for reading in entire header
Throws:
IOException
HttpException
Method Detail

getCharacterEncoding

public 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 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 IOException
Closes the stream

Throws:
IOException


Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.