org.apache.http.impl.nio.codecs
Class HttpResponseParser
java.lang.Object
org.apache.http.impl.nio.codecs.AbstractMessageParser
org.apache.http.impl.nio.codecs.HttpResponseParser
- All Implemented Interfaces:
- NHttpMessageParser
public class HttpResponseParser
- extends AbstractMessageParser
Default NHttpMessageParser
implementation for HttpResponse
s.
- Since:
- 4.0
- Version:
- $Revision: 744538 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpResponseParser
public HttpResponseParser(SessionInputBuffer buffer,
LineParser parser,
HttpResponseFactory responseFactory,
HttpParams params)
createMessage
protected HttpMessage createMessage(CharArrayBuffer buffer)
throws HttpException,
ParseException
- Description copied from class:
AbstractMessageParser
- Creates
HttpMessage
instance based on the content of the input
buffer containing the first line of the incoming HTTP message.
- Specified by:
createMessage
in class AbstractMessageParser
- Parameters:
buffer
- the line buffer.
- Returns:
- HTTP message.
- Throws:
HttpException
- in case of HTTP protocol violation
ParseException
- in case of a parse error.
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.