Package org.apache.coyote

Examples of org.apache.coyote.ProtocolHandler


        }

        TesterSupport.configureClientCertContext(tomcat);
       
        // Override the defaults
        ProtocolHandler handler = tomcat.getConnector().getProtocolHandler();
        if (handler instanceof AbstractHttp11JsseProtocol) {
            ((AbstractHttp11JsseProtocol) handler).setTruststoreFile(null);
        } else {
            // Unexpected
            fail("Unexpected handler type");
View Full Code Here


        } catch (LifecycleException e) {
            throw new ContainerException(e);
        }

        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 {
View Full Code Here

        if( mserver.isRegistered( oname ))  {
            mserver.unregisterMBean(oname);
        }
        // Unregister associated request processor
        String worker = null;
        ProtocolHandler handler = connector.getProtocolHandler();
        if (handler instanceof Http11Protocol) {
            worker = ((Http11Protocol)handler).getName();
        } else if (handler instanceof Http11NioProtocol) {
            worker = ((Http11NioProtocol)handler).getName();
        } else if (handler instanceof Http11AprProtocol) {
View Full Code Here

                TesterSupport.isRenegotiationSupported(getTomcatInstance()));

        TesterSupport.configureClientCertContext(tomcat);

        // Override the defaults
        ProtocolHandler handler = tomcat.getConnector().getProtocolHandler();
        if (handler instanceof AbstractHttp11JsseProtocol) {
            ((AbstractHttp11JsseProtocol) handler).setTruststoreFile(null);
        } else {
            // Unexpected
            fail("Unexpected handler type");
View Full Code Here

        if( mserver.isRegistered( oname ))  {
            mserver.unregisterMBean(oname);
        }
        // Unregister associated request processor
        String worker = null;
        ProtocolHandler handler = connector.getProtocolHandler();
        if (handler instanceof Http11Protocol) {
            worker = ((Http11Protocol)handler).getName();
        } else if (handler instanceof Http11NioProtocol) {
            worker = ((Http11NioProtocol)handler).getName();
        } else if (handler instanceof Http11AprProtocol) {
View Full Code Here

          }
          if (server != null) {
            Service[] findServices = server.findServices();
            for (Service service : findServices) {
              for (Connector connector : service.findConnectors()) {
                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;
View Full Code Here

               
            if (("keystoreType").equals(name)) {
                name = "keyType";
            }
               
            ProtocolHandler protocolHandler = connector.getProtocolHandler();
      /* check the Protocol first, since JkCoyote has an independent
             * configure method.
             */
            try {
                if( protocolHandler != null ) {
View Full Code Here

            if (("keystoreType").equals(name)) {
                name = "keyType";
            }
           
            ProtocolHandler protocolHandler = connector.getProtocolHandler();
      /* check the Protocol first, since JkCoyote has an independent
             * configure method.
             */
            try {
                if( protocolHandler != null ) {
View Full Code Here

        }
        writer.print("<Connector");
        storeAttributes(writer, connector);
   
        if (connector instanceof CoyoteConnector) {
            ProtocolHandler protocolHandler =
                ((CoyoteConnector)connector).getProtocolHandler();
            storeAttributes(writer, protocolHandler);
        }
       
        writer.println(">");
View Full Code Here

                TesterSupport.isRenegotiationSupported(getTomcatInstance()));

        TesterSupport.configureClientCertContext(tomcat);

        // Override the defaults
        ProtocolHandler handler = tomcat.getConnector().getProtocolHandler();
        if (handler instanceof AbstractHttp11JsseProtocol) {
            ((AbstractHttp11JsseProtocol<?>) handler).setTruststoreFile(null);
        } else {
            // Unexpected
            fail("Unexpected handler type");
View Full Code Here

TOP

Related Classes of org.apache.coyote.ProtocolHandler

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.