public abstract static class HttpParser.EventHandler extends Object
Constructor and Description |
---|
HttpParser.EventHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
content(Buffer ref) |
void |
earlyEOF() |
void |
headerComplete() |
void |
messageComplete(long contentLength) |
void |
parsedHeader(Buffer name,
Buffer value)
This is the method called by parser when a HTTP Header name and value is found
|
abstract void |
startRequest(Buffer method,
Buffer url,
Buffer version)
This is the method called by parser when the HTTP request line is parsed
|
abstract void |
startResponse(Buffer version,
int status,
Buffer reason)
This is the method called by parser when the HTTP request line is parsed
|
public abstract void content(Buffer ref) throws IOException
IOException
public void headerComplete() throws IOException
IOException
public void messageComplete(long contentLength) throws IOException
IOException
public void parsedHeader(Buffer name, Buffer value) throws IOException
IOException
public abstract void startRequest(Buffer method, Buffer url, Buffer version) throws IOException
IOException
public abstract void startResponse(Buffer version, int status, Buffer reason) throws IOException
IOException
public void earlyEOF()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.