org.apache.http.impl.nio.codecs
Class HttpMessageParser

java.lang.Object
  extended by org.apache.http.impl.nio.codecs.HttpMessageParser
Direct Known Subclasses:
HttpRequestParser, HttpResponseParser

public abstract class HttpMessageParser
extends java.lang.Object


Constructor Summary
HttpMessageParser(SessionInputBuffer buffer, HttpParams params)
           
 
Method Summary
 void configure()
           
protected abstract  HttpMessage createMessage(CharArrayBuffer buffer)
           
 int fillBuffer(java.nio.channels.ReadableByteChannel channel)
           
 HttpMessage parse()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMessageParser

public HttpMessageParser(SessionInputBuffer buffer,
                         HttpParams params)
Method Detail

configure

public void configure()

reset

public void reset()

fillBuffer

public int fillBuffer(java.nio.channels.ReadableByteChannel channel)
               throws java.io.IOException
Throws:
java.io.IOException

createMessage

protected abstract HttpMessage createMessage(CharArrayBuffer buffer)
                                      throws HttpException
Throws:
HttpException

parse

public HttpMessage parse()
                  throws java.io.IOException,
                         HttpException
Throws:
java.io.IOException
HttpException


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.