Examples of ProtocolFinder


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

        if (System.getProperty(PROTOCOL_FINDERS) != null) {
            StringTokenizer st = new StringTokenizer(System.getProperty(
                    PROTOCOL_FINDERS), ",");
           
            while (st.hasMoreTokens()) {
                ProtocolFinder protocolFinder = (ProtocolFinder) loadInstance(st.nextToken());
                protocolFinders.offer(protocolFinder);
            }
        }
    }
View Full Code Here

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

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

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

            SelectorThread.logger().log(Level.WARNING,
                       "Invalid proxied protocol value: " + protocol);           
            return;
        }
       
        ProtocolFinder finder =
                (ProtocolFinder)loadInstance(className,classLoader);
        if (finder != null){
            pipeline.addProtocolFinder(finder);
        }         
    }
View Full Code Here

Examples of com.sun.grizzly.config.dom.ProtocolFinder

                        if (name.equals(finder.getName())) {
                            throw new TransactionFailure(
                                String.format("A protocol finder named %s already exists.", name));
                        }
                    }
                    final ProtocolFinder finder = param.createChild(ProtocolFinder.class);
                    finder.setName(name);
                    finder.setProtocol(targetName);
                    finder.setClassname(classname);
                    list.add(finder);
                    return null;
                }
            }, unif);
        } catch (ValidationFailureException e) {
View Full Code Here

Examples of com.sun.grizzly.config.dom.ProtocolFinder

        return puProtocol;
    }

    private void createProtocolFinder(final PortUnification pu, final String protocolName, final String name,
        final String className) throws TransactionFailure {
        final ProtocolFinder finder = pu.createChild(ProtocolFinder.class);
        pu.getProtocolFinder().add(finder);
        finder.setProtocol(protocolName);
        finder.setName(name);
        finder.setClassname(className);
    }
View Full Code Here

Examples of net.sf.myway.gps.garmin.protocol.ProtocolFinder

    final String connectionType = props.getProperty(PROP_CONNECTION_TYPE);
    _connection = getConnectionInstance(connectionType);
    if (_connection == null)
      throw new CoreException(new Status(IStatus.ERROR, GarminPlugin.PLUGIN_ID,
        "No connection class found for type " + connectionType));
    _downloadHandler = _connection.connect(props, this, new ProtocolFinder() {
      /**
       * Method findProtocol.
       *
       * @param message
       * @return Protocol
View Full Code Here

Examples of org.glassfish.grizzly.config.dom.ProtocolFinder

                        if (name.equals(finder.getName())) {
                            throw new TransactionFailure(
                                String.format("A protocol finder named %s already exists.", name));
                        }
                    }
                    final ProtocolFinder finder = param.createChild(ProtocolFinder.class);
                    finder.setName(name);
                    finder.setProtocol(targetName);
                    finder.setClassname(classname);
                    list.add(finder);
                    return null;
                }
            }, unif);
        } catch (ValidationFailureException e) {
View Full Code Here

Examples of org.glassfish.grizzly.config.dom.ProtocolFinder

                        if (name.equals(finder.getName())) {
                            throw new TransactionFailure(
                                String.format("A protocol finder named %s already exists.", name));
                        }
                    }
                    final ProtocolFinder finder = param.createChild(ProtocolFinder.class);
                    finder.setName(name);
                    finder.setProtocol(targetName);
                    finder.setClassname(classname);
                    list.add(finder);
                    return null;
                }
            }, unif);
        } catch (ValidationFailureException e) {
View Full Code Here

Examples of org.glassfish.grizzly.portunif.ProtocolFinder

            }
            List<org.glassfish.grizzly.config.dom.ProtocolFinder> findersConfig = pu.getProtocolFinder();
            for (org.glassfish.grizzly.config.dom.ProtocolFinder finderConfig : findersConfig) {
                final String finderClassname = finderConfig.getClassname();
                try {
                    final ProtocolFinder protocolFinder = Utils.newInstance(habitat,
                        ProtocolFinder.class, finderClassname, finderClassname);
                    configureElement(habitat, networkListener, finderConfig, protocolFinder);
                    final Protocol subProtocol = finderConfig.findProtocol();
                    final FilterChainBuilder subProtocolFilterChainBuilder =
                        puFilter.getPUFilterChainBuilder();
View Full Code Here

Examples of org.glassfish.grizzly.portunif.ProtocolFinder

            }
            List<org.glassfish.grizzly.config.dom.ProtocolFinder> findersConfig = pu.getProtocolFinder();
            for (org.glassfish.grizzly.config.dom.ProtocolFinder finderConfig : findersConfig) {
                final String finderClassname = finderConfig.getClassname();
                try {
                    final ProtocolFinder protocolFinder = Utils.newInstance(habitat,
                        ProtocolFinder.class, finderClassname, finderClassname);
                    configureElement(habitat, networkListener, finderConfig, protocolFinder);
                    final Protocol subProtocol = finderConfig.findProtocol();
                    final FilterChainBuilder subProtocolFilterChainBuilder =
                        puFilter.getPUFilterChainBuilder();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.