Java 类org.jboss.netty.channel.ChannelUpstreamHandler 实例源码

项目:NioSmtpClient    文件:ExtensibleNettyServer.java   
protected ChannelUpstreamHandler createCoreHandler() {
  // Supporting chunking is difficult because James offers a line-oriented interface.
  // By saving the Netty channel into James' SMTPSession, we can add a Netty handler
  // that can intercept the BDAT message body before James attempts to parse it
  // into a series of lines.
  return new BasicChannelUpstreamHandler(protocol, secure) {
    @Override
    protected ProtocolSession createSession(ChannelHandlerContext ctx) throws Exception {
      ProtocolSession session = super.createSession(ctx);
      session.setAttachment(NETTY_CHANNEL, ctx.getChannel(), State.Connection);
      return session;
    }
  };
}
项目:James    文件:AbstractConfigurableAsyncServer.java   
@Override
protected ChannelPipelineFactory createPipelineFactory(ChannelGroup group) {
    return new AbstractExecutorAwareChannelPipelineFactory(getTimeout(), connectionLimit, connPerIP, group, enabledCipherSuites, getExecutionHandler()) {
        @Override
        protected SSLContext getSSLContext() {
            if (encryption == null) {
                return null;
            } else {
                return encryption.getContext();
            }
        }

        @Override
        protected boolean isSSLSocket() {
            return encryption != null && !encryption.isStartTLS();
        }


        @Override
        protected ChannelUpstreamHandler createHandler() {
            return AbstractConfigurableAsyncServer.this.createCoreHandler();

        }

        @Override
        protected ConnectionCountHandler getConnectionCountHandler() {
            return AbstractConfigurableAsyncServer.this.getConnectionCountHandler();
        }

    };
}
项目:James    文件:IMAPServer.java   
@Override
protected ChannelUpstreamHandler createCoreHandler() {
    ImapChannelUpstreamHandler coreHandler;
    Encryption secure = getEncryption();
    if (secure!= null && secure.isStartTLS()) {
       coreHandler = new ImapChannelUpstreamHandler(hello, processor, encoder, getLogger(), compress, plainAuthDisallowed, secure.getContext(), getEnabledCipherSuites());
    } else {
       coreHandler = new ImapChannelUpstreamHandler(hello, processor, encoder, getLogger(), compress, plainAuthDisallowed);
    }
    return coreHandler;
}
项目:incubator-tajo    文件:ProtoPipelineFactory.java   
public ProtoPipelineFactory(ChannelUpstreamHandler handlerFactory,
    MessageLite defaultInstance) {
  this.handler = handlerFactory;
  this.defaultInstance = defaultInstance;
}
项目:tajo-cdh    文件:ProtoPipelineFactory.java   
public ProtoPipelineFactory(ChannelUpstreamHandler handlerFactory,
    MessageLite defaultInstance) {
  this.handler = handlerFactory;
  this.defaultInstance = defaultInstance;
}
项目:James    文件:POP3Server.java   
@Override
protected ChannelUpstreamHandler createCoreHandler() {
    return coreHandler; 
}
项目:James    文件:LMTPServer.java   
@Override
protected ChannelUpstreamHandler createCoreHandler() {
    SMTPProtocol protocol = new SMTPProtocol(getProtocolHandlerChain(), lmtpConfig, new ProtocolLoggerAdapter(getLogger()));
    return new SMTPChannelUpstreamHandler(protocol, getLogger());
}
项目:James    文件:SMTPServer.java   
@Override
protected ChannelUpstreamHandler createCoreHandler() {
    return coreHandler;
}
项目:netty-isdn-transport    文件:ChannelAllCoverageWrapper.java   
public ChannelAllCoverageWrapper(ChannelHandler handler) {
    super();
    this.handler = handler;
    this.downstream = (handler instanceof ChannelDownstreamHandler);
    this.upstream = (handler instanceof ChannelUpstreamHandler);
}
项目:netty-isdn-transport    文件:ChannelAllCoverageWrapper.java   
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {
    if (upstream) {
        ((ChannelUpstreamHandler) handler).handleUpstream(ctx, e);
    }
}
项目:feluca    文件:LeaderServer.java   
@Override
protected ChannelUpstreamHandler finalChannelUpstreamHandler() {
    return null;
}
项目:feluca    文件:WorkerServer.java   
@Override
protected ChannelUpstreamHandler finalChannelUpstreamHandler() {
    // TODO Auto-generated method stub
    return null;
}
项目:smartenit    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:archived-net-virt-platform    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:floodlight-qosmanager    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:floodlight-nfv    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:floodlight-oss    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:my-floodlight    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:FL_HAND    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:sdn-project    文件:Controller.java   
/**
 * Return a new channel handler for processing a switch connections
 * @param state The channel state object for the connection
 * @return the new channel handler
 */
protected ChannelUpstreamHandler getChannelHandler(OFChannelState state) {
    return new OFChannelHandler(state);
}
项目:James    文件:AbstractConfigurableAsyncServer.java   
protected abstract ChannelUpstreamHandler createCoreHandler();
项目:feluca    文件:BaseNioServer.java   
abstract protected ChannelUpstreamHandler finalChannelUpstreamHandler();