Package com.sun.enterprise.web.portunif

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


   
    /**
     * Configure the domain.xml proxied protocols.
     */
    private void configureProxiedProtocols() {
        PortUnificationPipeline pipeline = (PortUnificationPipeline)
            selectorThread.getProcessorPipeline();
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        StringTokenizer st = new StringTokenizer(proxiedProtocols,",");
         
        String className;
        ProtocolFinder finder;
        // By default, we must add an https finder if secure.
        if (secure){
            addProtocol(TLS,pipeline,classLoader)
        }

        String protocol;
        while (st.hasMoreTokens()){
            protocol = st.nextToken().toLowerCase();
            if (protocol.equals(TLS) && secure){
                continue;
            } else if (protocol.equals(HTTP)){
                continue;
            }
            addProtocol(protocol,pipeline,classLoader);
        }
               
        // 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


        }
       
        selectorThread.setPipelineClassName(PortUnificationPipeline.class.getName());
        selectorThread.initEndpoint();
       
        PortUnificationPipeline puPipeline = (PortUnificationPipeline) selectorThread.getProcessorPipeline();
        puPipeline.addProtocolFinder(new WSTCPProtocolFinder());
        puPipeline.addProtocolFinder(new TlsProtocolFinder());
        puPipeline.addProtocolFinder(new HttpRedirectorProtocolFinder());
       
        WSTCPProtocolHandler protocolHandler = new WSTCPProtocolHandler();
        WSTCPProtocolHandler.setIncomingMessageProcessor(messageProcessor);
        puPipeline.addProtocolHandler(protocolHandler);
       
        puPipeline.addProtocolHandler(new HttpRedirectorProtocolHandler(redirectHttpPort));
       
        return selectorThread;
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.web.portunif.PortUnificationPipeline

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.