protected Object doCall() throws Exception { context.getProtocolChain().execute(context); return null; }
public boolean postExecute(Context ctx) throws IOException { if (isInitilizedOk) { final ProtocolChain chain = ctx.getProtocolChain(); chain.removeFilter(this); ctx.setAttribute(ProtocolChain.PROTOCOL_CHAIN_POST_INSTRUCTION, ProtocolChainInstruction.REINVOKE); } return true; } }
/** * Delegate the processing of the read operation to the {@link IOEvent{ * associated {@link ProtocolChain} * @param ioEvent an {@link IOEvent} representing the current state of the * OP_CONNECT operations. */ public void onRead(IOEvent<Context> ioEvent) { if (!delegateToProtocolChain) return; Context context = ioEvent.attachment(); try { context.getProtocolChain().execute(context); } catch (Exception ex) { Controller.logger().log(Level.SEVERE, "Read/Write operation failed.", ex); } }
public boolean execute(Context ctx) throws IOException { final ProtocolChain chain = ctx.getProtocolChain(); synchronized (ssl) { if (!isSslInitialized) { isSslInitialized = true; isInitilizedOk = sslConfigHolder.configureSSL(); if (!isInitilizedOk) { logger.log(Level.SEVERE, "Failed to configure SSL on protocol ''{0}'' on network-listener ''{1}''", new Object[]{protocolName, networkListenerName}); } } } if (isInitilizedOk) { doConfigureFilters(chain); } else { logger.log(Level.FINE, "Closing connection to misconfigured SSL protocol"); ctx.getSelectorHandler().addPendingKeyCancel(ctx.getSelectionKey()); } return false; }
if (ctx.getProtocolChain() instanceof DefaultProtocolChain){ protocolChain = (DefaultProtocolChain)ctx.getProtocolChain(); } else { throw new IllegalStateException("SuspendableFilter cannot be " +
ProtocolChain protocolChain = ctx.getProtocolChain();