public class MessageReader
extends java.lang.Object
Constructor | Description |
---|---|
MessageReader(java.io.InputStream pStream,
int pTimeout) |
Ctor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes the stream
|
java.lang.String |
getCharacterEncoding() |
Returns the character encoding
|
HttpHeader |
getHeader() |
Returns the http header
|
java.io.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
|
public MessageReader(java.io.InputStream pStream, int pTimeout) throws java.io.IOException, HttpException
pStream
- The input streampTimeout
- The timeout for reading in entire headerjava.io.IOException
HttpException
public java.lang.String getCharacterEncoding()
public HttpHeader getHeader()
public HttpServerMethod getMethod()
public java.io.InputStream getInputStream()
public boolean isPersistentConnectionSupported()
true
if persistent connection is supportedpublic boolean isChunkSupported()
true
if chunking is supportedpublic void close() throws java.io.IOException
java.io.IOException
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.