public abstract static class HttpParser.EventHandler
extends java.lang.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 java.io.IOException
java.io.IOExceptionpublic void headerComplete()
throws java.io.IOException
java.io.IOExceptionpublic void messageComplete(long contentLength)
throws java.io.IOException
java.io.IOExceptionpublic void parsedHeader(Buffer name, Buffer value) throws java.io.IOException
java.io.IOExceptionpublic abstract void startRequest(Buffer method, Buffer url, Buffer version) throws java.io.IOException
java.io.IOExceptionpublic abstract void startResponse(Buffer version, int status, Buffer reason) throws java.io.IOException
java.io.IOExceptionpublic void earlyEOF()
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.