org.eclipse.jetty.http
类 HttpParser.EventHandler

java.lang.Object
  继承者 org.eclipse.jetty.http.HttpParser.EventHandler
包容类:
HttpParser

public abstract static class HttpParser.EventHandler
extends Object


构造方法摘要
HttpParser.EventHandler()
           
 
方法摘要
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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HttpParser.EventHandler

public HttpParser.EventHandler()
方法详细信息

content

public abstract void content(Buffer ref)
                      throws IOException
抛出:
IOException

headerComplete

public void headerComplete()
                    throws IOException
抛出:
IOException

messageComplete

public void messageComplete(long contentLength)
                     throws IOException
抛出:
IOException

parsedHeader

public void parsedHeader(Buffer name,
                         Buffer value)
                  throws IOException
This is the method called by parser when a HTTP Header name and value is found

抛出:
IOException

startRequest

public abstract void startRequest(Buffer method,
                                  Buffer url,
                                  Buffer version)
                           throws IOException
This is the method called by parser when the HTTP request line is parsed

抛出:
IOException

startResponse

public abstract void startResponse(Buffer version,
                                   int status,
                                   Buffer reason)
                            throws IOException
This is the method called by parser when the HTTP request line is parsed

抛出:
IOException

earlyEOF

public void earlyEOF()


Copyright © 2013. All Rights Reserved.