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
IOExceptionpublic void headerComplete()
throws IOException
IOExceptionpublic void messageComplete(long contentLength)
throws IOException
IOExceptionpublic void parsedHeader(Buffer name, Buffer value) throws IOException
IOExceptionpublic abstract void startRequest(Buffer method, Buffer url, Buffer version) throws IOException
IOExceptionpublic abstract void startResponse(Buffer version, int status, Buffer reason) throws IOException
IOExceptionpublic void earlyEOF()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.