Package org.apache.catalina.net

Examples of org.apache.catalina.net.ServerSocketFactory


     *
     * @param sslProtocol SSL protocol variant
     */
    public void setSslProtocol(String sslProtocol) {
        setProperty("sslProtocol", sslProtocol);
        ServerSocketFactory factory = getFactory();
        if (factory instanceof CoyoteServerSocketFactory) {
            ((CoyoteServerSocketFactory)factory).setProtocol(sslProtocol);
        }
    }
View Full Code Here


     * @return Comma-separated list of SSL protocol variants
     */
    public String getSslProtocols() {
        String ret = (String) getProperty("sslProtocols");
        if (ret == null) {
            ServerSocketFactory factory = getFactory();
            if (factory instanceof CoyoteServerSocketFactory) {
                ret = ((CoyoteServerSocketFactory)factory).getProtocols();
            }
        }

View Full Code Here

     *
     * @param sslProtocols Comma-separated list of SSL protocol variants
     */
    public void setSslProtocols(String sslProtocols) {
        setProperty("sslProtocols", sslProtocols);
        ServerSocketFactory factory = getFactory();
        if (factory instanceof CoyoteServerSocketFactory) {
            ((CoyoteServerSocketFactory)factory).setProtocols(sslProtocols);
        }
    }
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

        return coyoteFactory.getKeystoreFile();
    }

    public void setKeystoreFile(String keystoreFile) {
        setProperty("keystore", keystoreFile);
        ServerSocketFactory factory= this.getFactory();
        if( ! (factory instanceof CoyoteServerSocketFactory) )
            return;
        CoyoteServerSocketFactory coyoteFactory=(CoyoteServerSocketFactory)factory;
        coyoteFactory.setKeystoreFile(keystoreFile);
       
View Full Code Here

    /**
     * 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

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.