org.mortbay.jetty.grizzly
Class HttpProtocolFilter

java.lang.Object
  extended by org.mortbay.jetty.grizzly.HttpProtocolFilter
All Implemented Interfaces:
com.sun.grizzly.ProtocolFilter

public class HttpProtocolFilter
extends java.lang.Object
implements com.sun.grizzly.ProtocolFilter

Delegate the processing of the request to a GrizzlyEndPoint

Author:
Jeanfrancois Arcand

Field Summary
 
Fields inherited from interface com.sun.grizzly.ProtocolFilter
SUCCESSFUL_READ
 
Constructor Summary
HttpProtocolFilter()
           
 
Method Summary
 boolean execute(com.sun.grizzly.Context ctx)
          Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain.
 GrizzlyEndPoint getEndPoint()
           
 HttpParser getParser()
           
 boolean postExecute(com.sun.grizzly.Context ctx)
          If no bytes were available, close the connection by cancelling the SelectionKey.
 void setEndPoint(GrizzlyEndPoint endPoint)
           
 void setParser(HttpParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProtocolFilter

public HttpProtocolFilter()
Method Detail

execute

public boolean execute(com.sun.grizzly.Context ctx)
                throws java.io.IOException
Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain.

Specified by:
execute in interface com.sun.grizzly.ProtocolFilter
Returns:
true if the next ProtocolFilter on the ProtocolChain need to bve invoked.
Throws:
java.io.IOException

postExecute

public boolean postExecute(com.sun.grizzly.Context ctx)
                    throws java.io.IOException
If no bytes were available, close the connection by cancelling the SelectionKey. If bytes were available, register the SelectionKey for new bytes.

Specified by:
postExecute in interface com.sun.grizzly.ProtocolFilter
Returns:
true if the previous ProtocolFilter postExecute method needs to be invoked.
Throws:
java.io.IOException

getEndPoint

public GrizzlyEndPoint getEndPoint()

setEndPoint

public void setEndPoint(GrizzlyEndPoint endPoint)

getParser

public HttpParser getParser()

setParser

public void setParser(HttpParser parser)


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.