com.sun.grizzly.portunif
Class ProtocolRequestWorkerThreadAdapter
java.lang.Object
com.sun.grizzly.portunif.ProtocolRequestWorkerThreadAdapter
- All Implemented Interfaces:
- PUProtocolRequest
public class ProtocolRequestWorkerThreadAdapter
- extends Object
- implements PUProtocolRequest
- Author:
- Alexey Stashok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProtocolRequestWorkerThreadAdapter
public ProtocolRequestWorkerThreadAdapter()
setContext
public void setContext(Context context)
getSelectionKey
public SelectionKey getSelectionKey()
- Specified by:
getSelectionKey in interface PUProtocolRequest
getChannel
public SelectableChannel getChannel()
- Specified by:
getChannel in interface PUProtocolRequest
getByteBuffer
public ByteBuffer getByteBuffer()
- Specified by:
getByteBuffer in interface PUProtocolRequest
setByteBuffer
public void setByteBuffer(ByteBuffer byteBuffer)
- Specified by:
setByteBuffer in interface PUProtocolRequest
getSSLEngine
public SSLEngine getSSLEngine()
- Specified by:
getSSLEngine in interface PUProtocolRequest
setSSLEngine
public void setSSLEngine(SSLEngine sslEngine)
- Specified by:
setSSLEngine in interface PUProtocolRequest
getSecuredInputByteBuffer
public ByteBuffer getSecuredInputByteBuffer()
- Specified by:
getSecuredInputByteBuffer in interface PUProtocolRequest
setSecuredInputByteBuffer
public void setSecuredInputByteBuffer(ByteBuffer securedInputByteBuffer)
- Specified by:
setSecuredInputByteBuffer in interface PUProtocolRequest
getSecuredOutputByteBuffer
public ByteBuffer getSecuredOutputByteBuffer()
- Specified by:
getSecuredOutputByteBuffer in interface PUProtocolRequest
setSecuredOutputByteBuffer
public void setSecuredOutputByteBuffer(ByteBuffer securedOutputByteBuffer)
- Specified by:
setSecuredOutputByteBuffer in interface PUProtocolRequest
isMapSelectionKey
public boolean isMapSelectionKey()
- Returns whether we need to map SelectionKey to the specific ProtocolHandler permanently.
So all next requests will directly go to the specific ProtocolHandler, without
ProtocolFinder to be called. If Protocol
- Specified by:
isMapSelectionKey in interface PUProtocolRequest
- Returns:
- true - SelectionKey should be permanently associated with ProtocolHandler,
false - otherwise.
setMapSelectionKey
public void setMapSelectionKey(boolean mapSelectionKey)
- Sets whether we need to map SelectionKey to the specific ProtocolHandler permanently.
So all next requests will directly go to the specific ProtocolHandler, without
ProtocolFinder to be called. If Protocol
- Specified by:
setMapSelectionKey in interface PUProtocolRequest
- Parameters:
mapSelectionKey - True if SelectionKey should be permanently
associated with ProtocolHandler, false - otherwise.
getPassedPreProcessors
public Collection<String> getPassedPreProcessors()
- Specified by:
getPassedPreProcessors in interface PUProtocolRequest
addPassedPreProcessor
public void addPassedPreProcessor(String preProcessorId)
- Specified by:
addPassedPreProcessor in interface PUProtocolRequest
isPreProcessorPassed
public boolean isPreProcessorPassed(String preProcessorId)
- Specified by:
isPreProcessorPassed in interface PUProtocolRequest
getProtocolName
public String getProtocolName()
- Specified by:
getProtocolName in interface PUProtocolRequest
setProtocolName
public void setProtocolName(String protocolName)
- Specified by:
setProtocolName in interface PUProtocolRequest
setExecuteFilterChain
public void setExecuteFilterChain(boolean isExecuteFilterChain)
- Specified by:
setExecuteFilterChain in interface PUProtocolRequest
isExecuteFilterChain
public boolean isExecuteFilterChain()
- Specified by:
isExecuteFilterChain in interface PUProtocolRequest
Copyright © 2009 SUN Microsystems. All Rights Reserved.