|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Context in com.sun.grizzly |
---|
Classes in com.sun.grizzly that implement Context | |
---|---|
class |
NIOContext
This Object is used to share information between the Grizzly Framework classes and ProtocolFilter implementation. |
Fields in com.sun.grizzly declared as Context | |
---|---|
protected Context |
ContextTask.context
|
Methods in com.sun.grizzly that return Context | |
---|---|
Context |
ContextTask.getContext()
|
Context |
Controller.pollContext()
Get an instance of a NIOContext |
Methods in com.sun.grizzly with parameters of type Context | |
---|---|
boolean |
ProtocolFilter.execute(Context ctx)
Execute a unit of processing work to be performed. |
void |
ProtocolChain.execute(Context context)
Execute using the Context instance. |
void |
DefaultProtocolChain.execute(Context ctx)
Execute this ProtocolChain. |
void |
DefaultProtocolChain.execute(Context ctx,
int firstFilter)
Execute this ProtocolChain. |
protected int |
DefaultProtocolChain.executeProtocolFilter(Context ctx)
Execute the ProtocolFilter.execute method. |
protected int |
DefaultProtocolChain.executeProtocolFilter(Context ctx,
int firstFilter)
Execute the ProtocolFilter.execute method. |
boolean |
SelectorHandler.onAcceptInterest(SelectionKey key,
Context controllerCtx)
Handle OP_ACCEPT. |
boolean |
TCPSelectorHandler.onAcceptInterest(SelectionKey key,
Context ctx)
Handle OP_ACCEPT. |
boolean |
RoundRobinSelectorHandler.onAcceptInterest(SelectionKey key,
Context context)
|
boolean |
UDPSelectorHandler.onAcceptInterest(SelectionKey key,
Context ctx)
Handle OP_ACCEPT. |
boolean |
SelectorHandler.onConnectInterest(SelectionKey key,
Context controllerCtx)
Handle OP_CONNECT. |
boolean |
TCPSelectorHandler.onConnectInterest(SelectionKey key,
Context ctx)
Handle OP_CONNECT. |
protected void |
TCPSelectorHandler.onConnectOp(Context ctx,
TCPSelectorHandler.ConnectChannelOperation selectionKeyOp)
Handle new OP_CONNECT ops. |
protected void |
UDPSelectorHandler.onConnectOp(Context ctx,
TCPSelectorHandler.ConnectChannelOperation selectionKeyOp)
Handle new OP_CONNECT ops. |
boolean |
SelectorHandler.onReadInterest(SelectionKey key,
Context controllerCtx)
Handle OP_READ. |
boolean |
TCPSelectorHandler.onReadInterest(SelectionKey key,
Context ctx)
Handle OP_READ. |
boolean |
SelectorHandler.onWriteInterest(SelectionKey key,
Context controllerCtx)
Handle OP_WRITE. |
boolean |
TCPSelectorHandler.onWriteInterest(SelectionKey key,
Context ctx)
Handle OP_WRITE. |
protected NIOContext |
TCPSelectorHandler.pollContext(Context serverContext,
SelectionKey key,
Context.OpType opType)
Polls Context from pool and initializes it. |
boolean |
ProtocolFilter.postExecute(Context ctx)
Execute any cleanup activities, such as releasing resources that were acquired during the execute() method of this ProtocolFilter instance. |
protected boolean |
DefaultProtocolChain.postExecuteProtocolFilter(int currentPosition,
Context ctx)
Execute the ProtocolFilter.postExcute. |
void |
SelectorHandler.postSelect(Context controllerCtx)
This method is garantee to always be called after operation Selector.select(). |
void |
TCPSelectorHandler.postSelect(Context ctx)
Invoked after Selector.select(). |
void |
SelectorHandler.preSelect(Context controllerCtx)
This method is garantee to always be called before operation Selector.select(). |
void |
TCPSelectorHandler.preSelect(Context ctx)
Before invoking Selector.select(long) , make sure the ServerSocketChannel
has been created. |
void |
UDPSelectorHandler.preSelect(Context ctx)
Before invoking Selector.select(), make sure the ServerScoketChannel has been created. |
protected void |
TCPSelectorHandler.processPendingOperations(Context ctx)
|
void |
Controller.returnContext(Context ctx)
Return a Context to its pool if it is not shared. |
void |
TCPSelectorHandler.RegisterKeyOperation.run(Context context)
|
void |
TCPSelectorHandler.RegisterChannelOperation.run(Context context)
|
void |
TCPSelectorHandler.ConnectChannelOperation.run(Context context)
|
void |
TCPSelectorHandler.RunnableOperation.run(Context context)
|
void |
TCPSelectorHandler.SelectionKeyCancelOperation.run(Context context)
|
void |
SelectorHandlerTask.run(Context context)
|
Set<SelectionKey> |
SelectorHandler.select(Context controllerCtx)
Invoke the Selector.select() method. |
Set<SelectionKey> |
TCPSelectorHandler.select(Context ctx)
Execute the Selector.select(...) operations. |
void |
ContextTask.setContext(Context context)
|
Method parameters in com.sun.grizzly with type arguments of type Context | |
---|---|
void |
DefaultCallbackHandler.onConnect(IOEvent<Context> ioEvent)
Execute the non blocking connect operation. |
void |
DefaultCallbackHandler.onHandshake(IOEvent<Context> ioEvent)
By default, do nothing. |
void |
DefaultCallbackHandler.onRead(IOEvent<Context> ioEvent)
Delegate the processing of the read operation to the IOEvent{ associated {@link ProtocolChain} |
void |
DefaultCallbackHandler.onWrite(IOEvent<Context> ioEvent)
Delegate the processing of the write operation to the IOEvent{ associated {@link ProtocolChain} |
void |
Context.setIOEvent(IOEvent<Context> ioEvent)
Set an optional CallbackHandler. |
void |
NIOContext.setIOEvent(IOEvent<Context> ioEvent)
Set an optional CallbackHandler. |
Uses of Context in com.sun.grizzly.arp |
---|
Methods in com.sun.grizzly.arp with parameters of type Context | |
---|---|
protected void |
AsyncProtocolFilter.configureInputBuffer(InputReader inputStream,
Context context,
HttpWorkerThread workerThread)
Configure InputReader . |
protected void |
AsyncProtocolFilter.configureProcessorTask(ProcessorTask processorTask,
Context context,
StreamAlgorithm streamAlgorithm,
InputStream inputStream)
Configure SSLProcessorTask . |
boolean |
AsyncProtocolFilter.execute(Context ctx)
Execute a unit of processing work to be performed. |
Uses of Context in com.sun.grizzly.filter |
---|
Methods in com.sun.grizzly.filter with parameters of type Context | |
---|---|
boolean |
MessageDispatcher.execute(Context ctx)
|
boolean |
ReadFilter.execute(Context ctx)
Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain . |
boolean |
ParserProtocolFilter.execute(Context ctx)
Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain. |
boolean |
SSLReadFilter.execute(Context ctx)
|
boolean |
SSLEchoAsyncWriteQueueFilter.execute(Context ctx)
|
boolean |
EchoFilter.execute(Context ctx)
|
boolean |
SSLEchoFilter.execute(Context ctx)
|
boolean |
EchoAsyncWriteQueueFilter.execute(Context ctx)
|
boolean |
LogFilter.execute(Context ctx)
|
boolean |
UDPReadFilter.execute(Context ctx)
Deprecated. Read available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain. |
boolean |
UDPWriteFilter.execute(Context ctx)
Write available bytes and delegate the processing of them to the next ProtocolFilter in the ProtocolChain. |
protected boolean |
ReadFilter.execute(Context ctx,
ByteBuffer byteBuffer)
Read available bytes to the specific ByteBuffer and delegate
the processing of them to the next ProtocolFilter in the ProtocolChain. |
OutputStream |
Server.getOutputStream(Context connection)
If a server wants to write to a specific connection. |
OutputStream |
CustomProtocolServer.getOutputStream(Context ctx)
|
protected boolean |
ParserProtocolFilter.invokeProtocolParser(Context ctx,
ProtocolParser parser)
Invoke the ProtocolParser . |
abstract void |
MessageDispatcher.onMessageError(MessageError msg,
Context ctx)
|
abstract void |
MessageDispatcher.onRequestMessage(RequestMessage msg,
Context ctx)
Pluginpoint to handle an Message received from some Endpoint |
boolean |
MessageDispatcher.postExecute(Context ctx)
|
boolean |
ReadFilter.postExecute(Context ctx)
If no bytes were available, close the connection by cancelling the SelectionKey. |
boolean |
ParserProtocolFilter.postExecute(Context context)
|
boolean |
SSLReadFilter.postExecute(Context ctx)
If no bytes were available, close the connection by cancelling the SelectionKey. |
boolean |
SSLEchoAsyncWriteQueueFilter.postExecute(Context ctx)
|
boolean |
EchoFilter.postExecute(Context ctx)
|
boolean |
SSLEchoFilter.postExecute(Context ctx)
|
boolean |
EchoAsyncWriteQueueFilter.postExecute(Context ctx)
|
boolean |
LogFilter.postExecute(Context ctx)
|
boolean |
UDPWriteFilter.postExecute(Context ctx)
Re-enable the SelectionKey and make sure the ByteBuffer has been cleared. |
Method parameters in com.sun.grizzly.filter with type arguments of type Context | |
---|---|
void |
ProxyCallbackHandler.onConnect(IOEvent<Context> ioEvent)
|
void |
ProxyCallbackHandler.onRead(IOEvent<Context> ioEvent)
|
void |
ProxyCallbackHandler.onWrite(IOEvent<Context> ioEvent)
|
Constructor parameters in com.sun.grizzly.filter with type arguments of type Context | |
---|---|
ProxyCallbackHandler(boolean authentication,
CallbackHandler<Context> callbackhandler,
ConnectorHandler connectorHandler,
CountDownLatch proxyHandshakeDone,
String host,
int port,
String agent,
String user,
String pass)
|
Uses of Context in com.sun.grizzly.http |
---|
Methods in com.sun.grizzly.http with parameters of type Context | |
---|---|
protected void |
DefaultProtocolFilter.configureInputBuffer(InputReader inputStream,
Context context,
HttpWorkerThread workerThread)
Configure InputReader . |
protected void |
DefaultProtocolFilter.configureProcessorTask(ProcessorTask processorTask,
Context context,
StreamAlgorithm streamAlgorithm)
Configure ProcessorTask . |
boolean |
DefaultProtocolFilter.execute(Context ctx)
|
void |
HttpProtocolChain.execute(Context ctx)
Execute the request. |
boolean |
SelectorThreadHandler.onAcceptInterest(SelectionKey key,
Context ctx)
|
boolean |
DefaultProtocolFilter.postExecute(Context ctx)
|
Uses of Context in com.sun.grizzly.http.portunif |
---|
Methods in com.sun.grizzly.http.portunif with parameters of type Context | |
---|---|
String |
HttpProtocolFinder.find(Context context,
PUProtocolRequest protocolRequest)
|
boolean |
HttpProtocolHandler.handle(Context context,
PUProtocolRequest protocolRequest)
Redirect the request to the protocol defined in the protocolInfo . |
static void |
HttpRedirector.redirect(Context context,
ByteBuffer byteBuffer,
Integer redirectPort,
boolean redirectToSecure)
Redirect a un-secure request (http) to http or https. |
static void |
HttpRedirector.redirect(Context context,
PUProtocolRequest protocolRequest)
Redirect a un-secure request (http) to http or https. |
static void |
HttpRedirector.redirect(Context context,
PUProtocolRequest protocolRequest,
boolean redirectToSecure)
Redirect a un-secure request (http) to http or https. |
static void |
HttpRedirector.redirectSSL(Context context,
PUProtocolRequest protocolRequest)
Redirect a secure request (https) to http or https. |
static void |
HttpRedirector.redirectSSL(Context context,
PUProtocolRequest protocolRequest,
boolean redirectToSecure)
Redirect a secure request (https) to http or https. |
static void |
HttpRedirector.redirectSSL(Context context,
SSLEngine sslEngine,
ByteBuffer byteBuffer,
ByteBuffer outputBB,
Integer redirectPort,
boolean redirectToSecure)
Redirect a secure request (https) to http or https. |
Uses of Context in com.sun.grizzly.portunif |
---|
Methods in com.sun.grizzly.portunif with parameters of type Context | |
---|---|
boolean |
PUReadFilter.execute(Context context)
|
String |
ProtocolFinder.find(Context context,
PUProtocolRequest protocolRequest)
Try to determine the TCP protocol used (http, soap, etc.). |
protected ProtocolHandler |
PUReadFilter.getProtocolChainHandler(Context context,
PUProtocolRequest protocolRequest)
Returns filter chain ProtocolHandler , depending on current
Context and PUProtocolRequest state |
boolean |
DefaultFilterChainProtocolHandler.handle(Context context,
PUProtocolRequest protocolRequest)
|
boolean |
ProtocolHandler.handle(Context context,
PUProtocolRequest protocolRequest)
Handle the current request by either redirecting the request to a new port or by delivering the request to the proper endpoint. |
boolean |
CustomFilterChainProtocolHandler.handle(Context context,
PUProtocolRequest protocolRequest)
|
void |
PUPreProcessor.postProcess(Context context,
PUProtocolRequest protocolRequest)
Method is called if no ProtocolFinder was found. |
void |
TLSPUPreProcessor.postProcess(Context context,
PUProtocolRequest protocolRequest)
|
boolean |
PUPreProcessor.process(Context context,
PUProtocolRequest protocolRequest)
Method performs data preprocessing, before it will be passed to ProtocolFinder collection |
boolean |
TLSPUPreProcessor.process(Context context,
PUProtocolRequest protocolRequest)
Try to initialize an SSL|TLS handshake to determine if secured connection is used |
boolean |
PUReadFilter.processProtocolHandler(ProtocolHandler protocolHandler,
Context context,
PUProtocolRequest protocolRequest,
boolean mapSelectionKey)
|
void |
ProtocolRequestWorkerThreadAdapter.setContext(Context context)
|
Uses of Context in com.sun.grizzly.rcm |
---|
Methods in com.sun.grizzly.rcm with parameters of type Context | |
---|---|
void |
ResourceAllocationFilter.closeConnection(Context ctx)
Close the connection. |
boolean |
ResourceAllocationFilter.execute(Context ctx)
|
boolean |
ResourceAllocationFilter.invokeProtocolParser(Context ctx,
ProtocolParser protocolParser)
Invoke the ProtocolParser . |
Uses of Context in com.sun.grizzly.ssl |
---|
Methods in com.sun.grizzly.ssl with parameters of type Context | |
---|---|
protected void |
SSLAsyncProtocolFilter.configureInputBuffer(InputReader inputStream,
Context context,
HttpWorkerThread workerThread)
Configure InputReader . |
protected void |
SSLDefaultProtocolFilter.configureProcessorTask(ProcessorTask processorTask,
Context context,
StreamAlgorithm streamAlgorithm)
Configure ProcessorTask . |
protected void |
SSLAsyncProtocolFilter.configureProcessorTask(ProcessorTask processorTask,
Context context,
StreamAlgorithm streamAlgorithm,
InputStream inputStream)
Configure SSLProcessorTask . |
Uses of Context in com.sun.grizzly.suspendable |
---|
Methods in com.sun.grizzly.suspendable with parameters of type Context | |
---|---|
boolean |
SuspendableFilter.execute(Context ctx)
Excute the pattern matching algorithm to determine if a the current connection must be suspended or not, and when. |
boolean |
SuspendableFilter.postExecute(Context ctx)
Excute the pattern matching algorithm to determine if a the current connection must be suspended or not, and when. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |