Package org.apache.catalina.net

Examples of org.apache.catalina.net.ServerSocketFactory


    /**
     * Return keystorePass
     */
    public String getKeystorePass() {
        ServerSocketFactory factory = getFactory();
        if( factory instanceof CoyoteServerSocketFactory ) {
            return ((CoyoteServerSocketFactory)factory).getKeystorePass();
        }
        return null;
    }
View Full Code Here


    /**
     * Set keystorePass
     */
    public void setKeystorePass(String keystorePass) {
        setProperty("keypass", keystorePass);
        ServerSocketFactory factory = getFactory();
        if( factory instanceof CoyoteServerSocketFactory ) {
            ((CoyoteServerSocketFactory)factory).setKeystorePass(keystorePass);
        }
    }
View Full Code Here

        writer.print("<Connector");
        storeAttributes(writer, connector);
        writer.println(">");

        // Store nested <Factory> element
        ServerSocketFactory factory = connector.getFactory();
        if (factory != null) {
            storeFactory(writer, indent + 2, factory);
        }

        // Store nested <Listener> elements
View Full Code Here

    }

    // -------------------- Management methods --------------------

    public boolean getClientAuth() {
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return false;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        return coyoteFactory.getClientAuth();
    }
View Full Code Here

        return coyoteFactory.getClientAuth();
    }

    public void setClientAuth(boolean clientAuth) {
        setProperty("clientauth", String.valueOf(clientAuth));
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        coyoteFactory.setClientAuth(clientAuth);
    }
View Full Code Here

        coyoteFactory.setClientAuth(clientAuth);
    }


    public String getKeystoreFile() {
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return null;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        return coyoteFactory.getKeystoreFile();
    }
View Full Code Here

           CertificateException, UnrecoverableKeyException,
           KeyManagementException
    {

        // Acquire the server socket factory for this Connector
        ServerSocketFactory factory = getFactory();

        // If no address is specified, open a connection on all addresses
        if (address == null) {
            log(sm.getString("httpConnector.allAddresses"));
            return (factory.createSocket(port, acceptCount));
        }

        // Open a server socket on the specified address
        InetAddress[] addresses =
            InetAddress.getAllByName(InetAddress.getLocalHost().getHostName());
        int i;
        for (i = 0; i < addresses.length; i++) {
            if (addresses[i].getHostAddress().equals(address))
                break;
        }
        if (i < addresses.length) {
            log(sm.getString("httpConnector.anAddress", address));
            return (factory.createSocket(port, acceptCount, addresses[i]));
        } else {
            log(sm.getString("httpConnector.noAddress", address));
            return (factory.createSocket(port, acceptCount));
        }

    }
View Full Code Here

    }

    // -------------------- Management methods --------------------

    public boolean getClientAuth() {
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return false;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        return coyoteFactory.getClientAuth();
    }
View Full Code Here

        return coyoteFactory.getClientAuth();
    }

    public void setClientAuth(boolean clientAuth) {
        setProperty("clientauth", String.valueOf(clientAuth));
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        coyoteFactory.setClientAuth(clientAuth);
    }
View Full Code Here

        coyoteFactory.setClientAuth(clientAuth);
    }


    public String getKeystoreFile() {
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return null;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        return coyoteFactory.getKeystoreFile();
    }
View Full Code Here

TOP

Related Classes of org.apache.catalina.net.ServerSocketFactory

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.