Package com.sun.enterprise.web.portunif

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


     * @param task An implementation of <code>ReadTask</code>
     */
    public void addTask(Task task) {
        // Performance optimization used when a single protocol
        // is supported by this Pipeline.
        ProtocolHandler protocolHandler = null;
        boolean cachedHandler = (mappedProtocols != null) &&
                ((protocolHandler = mappedProtocols.get(task.getSelectionKey())) != null);
        SelectorThread selectorThread = task.getSelectorThread();
        KeepAlivePipeline kap = (selectorThread == null) ? null
                : selectorThread.getKeepAlivePipeline();
View Full Code Here


        if (System.getProperty(PROTOCOL_HANDLERS) != null) {
            StringTokenizer st = new StringTokenizer(System.getProperty(
                    PROTOCOL_HANDLERS), ",");
           
            while (st.hasMoreTokens()) {
                ProtocolHandler protocolHandler = (ProtocolHandler) loadInstance(st.nextToken());
               
                if (protocolHandler != null) {
                    String[] protocols = protocolHandler.getProtocols();
                   
                    for (String protocol : protocols) {
                        protocolHandlers.put(protocol, protocolHandler);
                    }
                }
View Full Code Here

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

TOP

Related Classes of com.sun.enterprise.web.portunif.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.