Package org.apache.coyote.http11

Examples of org.apache.coyote.http11.Http11Protocol


                ProtocolHandler protocolHandler = connector.getProtocolHandler();
                                if(protocol != null && protocol.equals(connector.getScheme())){
                if (protocolHandler instanceof Http11Protocol
                    || protocolHandler instanceof Http11AprProtocol
                    || protocolHandler instanceof Http11NioProtocol) {
                  Http11Protocol p = (Http11Protocol) protocolHandler;
                  if (p.getSslImplementationName() == null
                      || p.getSslImplementationName()
                          .equals("")) {
                    tomcatPort = String.valueOf(connector
                        .getPort());
                  }
                                }
View Full Code Here


        }

        for (Connector con: embedded.findConnectors()) {
            ProtocolHandler ph = con.getProtocolHandler();
            if (ph instanceof Http11Protocol) {
                Http11Protocol hph = (Http11Protocol) ph;
                Debug.logInfo("Connector " + hph.getProtocols() + " @ " + hph.getPort() + " - " +
                    (hph.getSecure() ? "secure" : "not-secure") + " [" + con.getProtocolHandlerClassName() + "] started.", module);
            } else {
                Debug.logInfo("Connector " + con.getProtocol() + " @ " + con.getPort() + " - " +
                    (con.getSecure() ? "secure" : "not-secure") + " [" + con.getProtocolHandlerClassName() + "] started.", module);
            }
        }
View Full Code Here

        }

        for (Connector con: embedded.findConnectors()) {
            ProtocolHandler ph = con.getProtocolHandler();
            if (ph instanceof Http11Protocol) {
                Http11Protocol hph = (Http11Protocol) ph;
                Debug.logInfo("Connector " + hph.getProtocols() + " @ " + hph.getPort() + " - " +
                    (hph.getSecure() ? "secure" : "not-secure") + " [" + con.getProtocolHandlerClassName() + "] started.", module);
            } else {
                Debug.logInfo("Connector " + con.getProtocol() + " @ " + con.getPort() + " - " +
                    (con.getSecure() ? "secure" : "not-secure") + " [" + con.getProtocolHandlerClassName() + "] started.", module);
            }
        }
View Full Code Here

                ProtocolHandler protocolHandler = connector.getProtocolHandler();
                                if(protocol != null && protocol.equals(connector.getScheme())){
                if (protocolHandler instanceof Http11Protocol
                    || protocolHandler instanceof Http11AprProtocol
                    || protocolHandler instanceof Http11NioProtocol) {
                  Http11Protocol p = (Http11Protocol) protocolHandler;
                  if (p.getSslImplementationName() == null
                      || p.getSslImplementationName()
                          .equals("")) {
                    tomcatPort = String.valueOf(connector
                        .getPort());
                  }
                                }
View Full Code Here

        }

        for (Connector con: embedded.findConnectors()) {
            ProtocolHandler ph = con.getProtocolHandler();
            if (ph instanceof Http11Protocol) {
                Http11Protocol hph = (Http11Protocol) ph;
                Debug.logInfo("Connector " + hph.getProtocols() + " @ " + hph.getPort() + " - " +
                    (hph.getSecure() ? "secure" : "not-secure") + " [" + con.getProtocolHandlerClassName() + "] started.", module);
            } else {
                Debug.logInfo("Connector " + con.getProtocol() + " @ " + con.getPort() + " - " +
                    (con.getSecure() ? "secure" : "not-secure") + " [" + con.getProtocolHandlerClassName() + "] started.", module);
            }
        }
View Full Code Here

                ProtocolHandler protocolHandler = connector.getProtocolHandler();
                                if(protocol != null && protocol.equals(connector.getScheme())){
                if (protocolHandler instanceof Http11Protocol
                    || protocolHandler instanceof Http11AprProtocol
                    || protocolHandler instanceof Http11NioProtocol) {
                  Http11Protocol p = (Http11Protocol) protocolHandler;
                  if (p.getSslImplementationName() == null
                      || p.getSslImplementationName()
                          .equals("")) {
                    tomcatPort = String.valueOf(connector
                        .getPort());
                  }
                                }
View Full Code Here

    engine.addChild(host);
    engine.setBaseDir(engineBaseDir);

    // setup a connector
    Connector connector = new Connector("org.apache.coyote.http11.Http11Protocol");
    Http11Protocol http11Protocol = (Http11Protocol) connector.getProtocolHandler();
    http11Protocol.setCompressionMinSize(1024*10);
    connector.setPort(8080);

    // setup a service
    Service service = new StandardService();
    service.setName("Tomcat");
View Full Code Here

    engine.addChild(host);
    engine.setBaseDir(engineBaseDir);

    // setup a connector
    Connector connector = new Connector("org.apache.coyote.http11.Http11Protocol");
    Http11Protocol http11Protocol = (Http11Protocol) connector.getProtocolHandler();
    http11Protocol.setCompressionMinSize(1024*10);
    connector.setPort(8080);

    // setup a service
    Service service = new StandardService();
    service.setName("Tomcat");
View Full Code Here

      connector.start();
      CoyoteInvoker invoker = (CoyoteInvoker) connector.getServerInvoker();
      Field field = CoyoteInvoker.class.getDeclaredField("protocolHandlers");
      field.setAccessible(true);
      List protocolHandlers = (List) field.get(invoker);
      Http11Protocol protocolHandler = (Http11Protocol) protocolHandlers.iterator().next();
      log.info("maxSavePostSize:   " + protocolHandler.getMaxSavePostSize());
      log.info("keepAlive:         " + protocolHandler.getKeepAlive());
      log.info("compression:       " + protocolHandler.getCompression());
      log.info("testObject:        " + protocolHandler.getAttribute("testObject"));
     
      log.info("soTimeout:         " + protocolHandler.getSoTimeout());
      log.info("tcpNoDelay:        " + protocolHandler.getTcpNoDelay());
      log.info("address:           " + protocolHandler.getAddress());
     
      assertEquals(new Integer(3), new Integer(protocolHandler.getMaxSavePostSize()));
      assertEquals(Boolean.FALSE, new Boolean(protocolHandler.getKeepAlive()));
      assertEquals("on", protocolHandler.getCompression());
      assertEquals(new TestObject(5), protocolHandler.getAttribute("testObject"));
     
      assertEquals(new Integer(7), new Integer(protocolHandler.getSoTimeout()));
      assertEquals(Boolean.TRUE, new Boolean(protocolHandler.getTcpNoDelay()));
      assertEquals(InetAddress.getLocalHost(), protocolHandler.getAddress());
     
      StandardThreadExecutor executor = (StandardThreadExecutor) protocolHandler.getExecutor();
      log.info("daemon:          " + executor.isDaemon());
      log.info("maxIdleTime:     " + executor.getMaxIdleTime());
      log.info("minSpareThreads: " + executor.getMinSpareThreads());
      log.info("maxThreads:      " + executor.getMaxThreads());
      log.info("name:            " + executor.getName());
View Full Code Here

        Connector[] cons = embedded.findConnectors();
        for (int i = 0; i < cons.length; i++) {
            ProtocolHandler ph = cons[i].getProtocolHandler();
            if (ph instanceof Http11Protocol) {
                Http11Protocol hph = (Http11Protocol) ph;
                Debug.logInfo("Connector " + hph.getProtocol() + " @ " + hph.getPort() + " - " +
                    (hph.getSecure() ? "secure" : "not-secure") + " [" + cons[i].getProtocolHandlerClassName() + "] started.", module);
            } else {
                Debug.logInfo("Connector " + cons[i].getProtocol() + " @ " + cons[i].getPort() + " - " +
                    (cons[i].getSecure() ? "secure" : "not-secure") + " [" + cons[i].getProtocolHandlerClassName() + "] started.", module);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.coyote.http11.Http11Protocol

Copyright © 2018 www.massapicom. 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.