Save This Page
Home » HttpComponents-Core-4.0.1 » org.apache.http.nio » [javadoc | source]
org.apache.http.nio
public interface: NHttpMessageParser [javadoc | source]

All Known Implementing Classes:
    HttpResponseParser, AbstractMessageParser, HttpRequestParser

Abstract HTTP message parser for non-blocking connections.
Method from org.apache.http.nio.NHttpMessageParser Summary:
fillBuffer,   parse,   reset
Method from org.apache.http.nio.NHttpMessageParser Detail:
 public int fillBuffer(ReadableByteChannel channel) throws IOException
 public HttpMessage parse() throws IOException, HttpException
    Attempts to parse a complete message head from the content of the internal buffer. If the message in the input buffer is incomplete this method will return null.
 public  void reset()
    Resets the parser. The parser will be ready to start parsing another HTTP message.