com.sun.grizzly.http
Class HttpProtocolChain

java.lang.Object
  extended by com.sun.grizzly.DefaultProtocolChain
      extended by com.sun.grizzly.http.HttpProtocolChain
All Implemented Interfaces:
ProtocolChain, ReinvokeAware

public class HttpProtocolChain
extends DefaultProtocolChain

Customized implementation of a ProtocolChain

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.DefaultProtocolChain
DefaultProtocolChain.EventHandler, DefaultProtocolChain.Phase
 
Field Summary
 
Fields inherited from class com.sun.grizzly.DefaultProtocolChain
continousExecution, eventHandlers, protocolFilters
 
Fields inherited from interface com.sun.grizzly.ProtocolChain
PROTOCOL_CHAIN_POST_INSTRUCTION
 
Constructor Summary
HttpProtocolChain()
           
 
Method Summary
 void enableRCM(boolean rcmSupport)
          Enable/Disable RCM.
 void execute(Context ctx)
          Execute the request.
 
Methods inherited from class com.sun.grizzly.DefaultProtocolChain
addEventHandler, addFilter, addFilter, execute, executeProtocolFilter, executeProtocolFilter, isContinuousExecution, notifyException, postExecuteProtocolFilter, removeEventHandler, removeFilter, setContinuousExecution, setProtocolFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProtocolChain

public HttpProtocolChain()
Method Detail

execute

public void execute(Context ctx)
             throws Exception
Execute the request. When RCM is enabled, swicth the ByteBuffer based on the decision made by a ResourceAllocationFilter

Specified by:
execute in interface ProtocolChain
Overrides:
execute in class DefaultProtocolChain
Parameters:
ctx -
Throws:
Exception

enableRCM

public void enableRCM(boolean rcmSupport)
Enable/Disable RCM.

Parameters:
rcmSupport -


Copyright © 2012 Oracle Corporation. All Rights Reserved.