@ThreadSafe public class DefaultHttpResponseParser extends AbstractMessageParser<HttpResponse>
lineParser
Constructor and Description |
---|
DefaultHttpResponseParser(SessionInputBuffer buffer)
Creates new instance of DefaultHttpResponseParser.
|
DefaultHttpResponseParser(SessionInputBuffer buffer,
LineParser parser,
HttpResponseFactory responseFactory,
HttpParams params)
|
DefaultHttpResponseParser(SessionInputBuffer buffer,
LineParser lineParser,
HttpResponseFactory responseFactory,
org.apache.http.config.MessageConstraints constraints)
Creates new instance of DefaultHttpResponseParser.
|
DefaultHttpResponseParser(SessionInputBuffer buffer,
org.apache.http.config.MessageConstraints constraints)
Creates new instance of DefaultHttpResponseParser.
|
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
parseHead(SessionInputBuffer sessionBuffer) |
protected boolean |
reject(CharArrayBuffer line,
int count) |
parse, parseHeaders, parseHeaders
@Deprecated public DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser parser, HttpResponseFactory responseFactory, HttpParams params)
public DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser lineParser, HttpResponseFactory responseFactory, org.apache.http.config.MessageConstraints constraints)
buffer
- the session input buffer.lineParser
- the line parser. If null
BasicLineParser.INSTANCE
will be used.responseFactory
- HTTP response factory. If null
DefaultHttpResponseFactory.INSTANCE
will be used.constraints
- the message constraints. If null
MessageConstraints.DEFAULT
will be used.public DefaultHttpResponseParser(SessionInputBuffer buffer, org.apache.http.config.MessageConstraints constraints)
buffer
- the session input buffer.constraints
- the message constraints. If null
MessageConstraints.DEFAULT
will be used.public DefaultHttpResponseParser(SessionInputBuffer buffer)
buffer
- the session input buffer.protected HttpResponse parseHead(SessionInputBuffer sessionBuffer) throws IOException, HttpException
parseHead
in class AbstractMessageParser<HttpResponse>
IOException
HttpException
protected boolean reject(CharArrayBuffer line, int count)
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.