org.sblim.cimclient.internal.http

Class MessageReader

public class MessageReader extends Object

Class MessageReader is responsible for reading http messages
Constructor Summary
MessageReader(InputStream pStream)
Ctor.
Method Summary
voidclose()
Closes the stream
StringgetCharacterEncoding()
Returns the character encoding
HttpHeadergetHeader()
Returns the http header
InputStreamgetInputStream()
Returns the input stream
HttpServerMethodgetMethod()
Returns the http server method
booleanisChunkSupported()
Returns the chunking support state
booleanisPersistentConnectionSupported()
Returns the persistent connection support state

Constructor Detail

MessageReader

public MessageReader(InputStream pStream)
Ctor.

Parameters: pStream The input stream

Throws: IOException HttpException

Method Detail

close

public void close()
Closes the stream

Throws: IOException

getCharacterEncoding

public String getCharacterEncoding()
Returns the character encoding

Returns: The character encoding

getHeader

public HttpHeader getHeader()
Returns the http header

Returns: The http header

getInputStream

public InputStream getInputStream()
Returns the input stream

Returns: The input stream

getMethod

public HttpServerMethod getMethod()
Returns the http server method

Returns: The http server method

isChunkSupported

public boolean isChunkSupported()
Returns the chunking support state

Returns: true if chunking is supported

isPersistentConnectionSupported

public boolean isPersistentConnectionSupported()
Returns the persistent connection support state

Returns: true if persistent connection is supported

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