Examples of ProtocolHandler


Examples of com.sun.enterprise.web.portunif.ProtocolHandler

     * @param task An implementation of <code>ReadTask</code>
     */
    public void addTask(Task task) {
        // Performance optimization used when a single protocol
        // is supported by this Pipeline.
        ProtocolHandler protocolHandler = null;
        boolean cachedHandler = (mappedProtocols != null) &&
                ((protocolHandler = mappedProtocols.get(task.getSelectionKey())) != null);
        SelectorThread selectorThread = task.getSelectorThread();
        KeepAlivePipeline kap = (selectorThread == null) ? null
                : selectorThread.getKeepAlivePipeline();
View Full Code Here

Examples of com.sun.enterprise.web.portunif.ProtocolHandler

        if (System.getProperty(PROTOCOL_HANDLERS) != null) {
            StringTokenizer st = new StringTokenizer(System.getProperty(
                    PROTOCOL_HANDLERS), ",");
           
            while (st.hasMoreTokens()) {
                ProtocolHandler protocolHandler = (ProtocolHandler) loadInstance(st.nextToken());
               
                if (protocolHandler != null) {
                    String[] protocols = protocolHandler.getProtocols();
                   
                    for (String protocol : protocols) {
                        protocolHandlers.put(protocol, protocolHandler);
                    }
                }
View Full Code Here

Examples of com.sun.enterprise.web.portunif.ProtocolHandler

        // Always add http finder at the end.
        addProtocol(HTTP,pipeline,classLoader);  

        Iterator<String> iterator = supportedHandlers.iterator();
        while(iterator.hasNext()){
            ProtocolHandler handler =
                    (ProtocolHandler)loadInstance(iterator.next(),classLoader);
            if (handler != null){
                pipeline.addProtocolHandler(handler);
            }
        }              
View Full Code Here

Examples of com.yz.net.ProtocolHandler

    MessageProcessTask.addFilter(new FiltrateTask());    //添加任务处理的过滤任务
   
    PlayerManager.getInstance();
   
    service = new IoServerImpl();
    ProtocolHandler protocolGroup = service.buildProtocolGroup(4, new CmNetProtocolHandler(), new CmWapProtocolHandler());
   
    Configure config = new Configure();
    config.setAddress(new InetSocketAddress("127.0.0.1",8899));
    config.setProtocolHandler(protocolGroup);
    config.setIoHandler(new LogicHandler());
View Full Code Here

Examples of com.yz.net.ProtocolHandler

    }
   
 
    int size = handlerList.size();
    for(int i=0; i<size; i++) {
      ProtocolHandler handler = handlerList.get(i);
      if(handler == null) {
        continue;
      }
     
      List<NetMessage> list = handler.onData(data, session);
      if(list != null && list.size() > 0) {
        return list;
      }
    }
   
View Full Code Here

Examples of com.yz.net.ProtocolHandler

    }
   
    ProtocolGroup group = new ProtocolGroup(prefixByteNum);
    int len = handlers.length;
    for(int i=0; i<len; i++) {
      ProtocolHandler handler = handlers[i];
      if(handler == null) {
        continue;
      }
     
      group.addHandler(handler);
View Full Code Here

Examples of javax.servlet.http.ProtocolHandler

        // Calls the protocol handler's init method if the request is marked to be upgraded
        if (request instanceof org.apache.catalina.connector.Request) {
            org.apache.catalina.connector.Request req = (org.apache.catalina.connector.Request) request;
            if (req.isUpgrade()) {
                ProtocolHandler handler = req.getProtocolHandler();
                if (handler != null) {
                    handler.init(
                            new WebConnectionImpl(
                            req.getInputStream(),
                            ((org.apache.catalina.connector.Response)req.getResponse()).getOutputStream()));
                } else {
                    log.log(Level.SEVERE, sm.getString("standardPipeline.protocolHandler.required"));
View Full Code Here

Examples of org.adbcj.postgresql.codec.ProtocolHandler

        @Override
        public void operationComplete(ChannelFuture future) throws Exception {
          Channel channel = future.getChannel();
          Connection connection = new Connection(NettyConnectionManager.this, channel, PostgresqlConnectFuture.this);
          ConnectionState state = connection.getConnectionState();
          ProtocolHandler protocolHandler = new ProtocolHandler(NettyConnectionManager.this);

          ChannelPipeline pipeline = channel.getPipeline();
          pipeline.addLast(ENCODER, new Encoder(state));
          pipeline.addLast(DECODER, new Decoder(state));
          pipeline.addLast(QUEUE_HANDLER, new Handler(connection, protocolHandler));

          protocolHandler.connectionOpened(connection);
        }
      });
    }
View Full Code Here

Examples of org.apache.coyote.ProtocolHandler

          }
          if (server != null) {
            Service[] findServices = server.findServices();
            for (Service service : findServices) {
              for (Connector connector : service.findConnectors()) {
                ProtocolHandler protocolHandler = connector.getProtocolHandler();
                if (protocolHandler instanceof Http11Protocol
                    || protocolHandler instanceof Http11AprProtocol
                    || protocolHandler instanceof Http11NioProtocol) {
                  Http11Protocol p = (Http11Protocol) protocolHandler;
                  if (p.getSslImplementationName() == null
View Full Code Here

Examples of org.apache.coyote.ProtocolHandler

    factory.addConnectorCustomizers(
        new TomcatConnectorCustomizer() {

          @Override
          public void customize(Connector connector) {
            ProtocolHandler handler = connector.getProtocolHandler();
            if (handler instanceof AbstractProtocol) {
              AbstractProtocol protocol = (AbstractProtocol) handler;
              protocol.setMaxThreads(maxThreads);
              protocol.setConnectionTimeout(connectionTimeout);
              protocol.setMaxConnections(maxConnections);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.