com.sun.grizzly.http
Class DefaultProtocolFilter

java.lang.Object
  extended by com.sun.grizzly.http.DefaultProtocolFilter
All Implemented Interfaces:
ProtocolFilter
Direct Known Subclasses:
AsyncProtocolFilter, SSLDefaultProtocolFilter

public class DefaultProtocolFilter
extends Object
implements ProtocolFilter

Default ProtocolFilter implementation, that allows http request processing.

Author:
Jeanfrancois Arcand

Field Summary
protected  Class algorithmClass
          The StreamAlgorithm classes.
protected static Logger logger
          Logger
protected  int port
          The current TCP port.
 
Fields inherited from interface com.sun.grizzly.ProtocolFilter
SUCCESSFUL_READ
 
Constructor Summary
DefaultProtocolFilter(Class algorithmClass, int port)
           
 
Method Summary
protected  void configureInputBuffer(InputReader inputStream, Context context, HttpWorkerThread workerThread)
          Configure InputReader.
protected  void configureProcessorTask(ProcessorTask processorTask, Context context, StreamAlgorithm streamAlgorithm)
          Configure ProcessorTask.
 boolean execute(Context ctx)
           
protected  boolean isSecure()
          Is ProtocolFilter secured
 boolean postExecute(Context ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithmClass

protected Class algorithmClass
The StreamAlgorithm classes.


port

protected int port
The current TCP port.


logger

protected static final Logger logger
Logger

Constructor Detail

DefaultProtocolFilter

public DefaultProtocolFilter(Class algorithmClass,
                             int port)
Method Detail

execute

public boolean execute(Context ctx)
                throws IOException
Specified by:
execute in interface ProtocolFilter
Throws:
IOException

postExecute

public boolean postExecute(Context ctx)
                    throws IOException
Specified by:
postExecute in interface ProtocolFilter
Throws:
IOException

configureProcessorTask

protected void configureProcessorTask(ProcessorTask processorTask,
                                      Context context,
                                      StreamAlgorithm streamAlgorithm)
Configure ProcessorTask.


configureInputBuffer

protected void configureInputBuffer(InputReader inputStream,
                                    Context context,
                                    HttpWorkerThread workerThread)
Configure InputReader.


isSecure

protected boolean isSecure()
Is ProtocolFilter secured

Returns:
is ProtocolFilter secured


Copyright © 2009 SUN Microsystems. All Rights Reserved.