|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.DefaultProtocolFilter
public class DefaultProtocolFilter
Default ProtocolFilter implementation, that allows HTTP request processing.
Field Summary | |
---|---|
protected InetAddress |
address
The current address. |
protected Class |
algorithmClass
The StreamAlgorithm class. |
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,
InetAddress address,
int port)
Constructs a new DefaultProtocolFilter / |
|
DefaultProtocolFilter(Class algorithmClass,
int port)
Deprecated. call DefaultProtocolFilter(Class, java.net.InetAddress, int) |
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)
Execute a unit of processing work to be performed. |
protected boolean |
isSecure()
Is ProtocolFilter secured |
boolean |
postExecute(Context ctx)
Execute any cleanup activities, such as releasing resources that were acquired during the execute() method of this ProtocolFilter instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Class algorithmClass
StreamAlgorithm
class.
protected int port
protected InetAddress address
protected static final Logger logger
Constructor Detail |
---|
@Deprecated public DefaultProtocolFilter(Class algorithmClass, int port)
DefaultProtocolFilter(Class, java.net.InetAddress, int)
Invokes DefaultProtocolFilter(Class, java.net.InetAddress, int)
.
algorithmClass
- the StreamAlgorithm
port
- the network port to associate with this filterpublic DefaultProtocolFilter(Class algorithmClass, InetAddress address, int port)
Constructs a new DefaultProtocolFilter
/
algorithmClass
- the StreamAlgorithm
address
- the network address to associate with this filterport
- the network port to associate with this filterMethod Detail |
---|
public boolean execute(Context ctx) throws IOException
ProtocolFilter
execute
in interface ProtocolFilter
ctx
- Context
IOException
public boolean postExecute(Context ctx) throws IOException
ProtocolFilter
postExecute
in interface ProtocolFilter
ctx
- Context
IOException
protected void configureProcessorTask(ProcessorTask processorTask, Context context, StreamAlgorithm streamAlgorithm)
ProcessorTask
.
protected void configureInputBuffer(InputReader inputStream, Context context, HttpWorkerThread workerThread)
InputReader
.
protected boolean isSecure()
ProtocolFilter
secured
ProtocolFilter
secured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |