Examples of Protocol


Examples of org.apache.qpid.server.model.Protocol

        if (excludedProtocols != null)
        {
            String[] excludes = excludedProtocols.split(",");
            for (String exclude : excludes)
            {
                Protocol protocol = Protocol.valueOf(exclude);
                defaultProtocols.remove(protocol);
            }
        }
        String includedProtocols = System.getProperty(BrokerProperties.PROPERTY_BROKER_DEFAULT_AMQP_PROTOCOL_INCLUDES);
        if (includedProtocols != null)
        {
            String[] includes = includedProtocols.split(",");
            for (String include : includes)
            {
                Protocol protocol = Protocol.valueOf(include);
                defaultProtocols.add(protocol);
            }
        }
        _defaultProtocols = Collections.unmodifiableCollection(defaultProtocols);
    }
View Full Code Here

Examples of org.apache.savan.configuration.Protocol

     *
     * @param element
     * @throws SavanException
     */
    private void processProtocol(OMElement element) throws SavanException {
        Protocol protocol = null;
        OMElement nameElement = null;
        String name = null;
        OMElement utilFactoryNameElement = null;
        String utilFactoryName = null;
        Object utilFactory = null;
        OMElement mappingRulesElement = null;
        OMElement defaultSubscriberElement = null;
        String defaultSubscriber = null;
        OMElement defaultFilterElement = null;
        String defaultFilter = null;

        protocol = new Protocol();
        nameElement = element.getFirstChildWithName(new QName(NAME));

        if (nameElement == null) {
            throw new SavanException("Protocol must have a 'Name' subelement");
        }

        name = nameElement.getText();
        protocol.setName(name);
        utilFactoryNameElement = element.getFirstChildWithName(new QName(UTIL_FACTORY));

        if (utilFactoryNameElement == null) {
            throw new SavanException("Protocol must have a 'UtilFactory' subelement");
        }

        utilFactoryName = utilFactoryNameElement.getText();
        utilFactory = getObject(utilFactoryName);

        if (!(utilFactory instanceof UtilFactory)) {
            throw new SavanException("UtilFactory element" + utilFactoryName
                    + "is not a subtype of the UtilFactory class");
        }

        protocol.setUtilFactory((UtilFactory) utilFactory);
        mappingRulesElement = element.getFirstChildWithName(new QName(MAPPING_RULES));

        if (mappingRulesElement == null) {
            throw new SavanException("Protocol must have a 'mappingRules' sub-element");
        }

        processMappingRules(mappingRulesElement, protocol);
        defaultSubscriberElement = element.getFirstChildWithName(new QName(DEFAULT_SUBSCRIBER));

        if (defaultSubscriberElement == null) {
            throw new SavanException("Protocols must have a 'defaultSubscriber' sub-element");
        }

        defaultSubscriber = defaultSubscriberElement.getText();
        protocol.setDefaultSubscriber(defaultSubscriber);
        defaultFilterElement = element.getFirstChildWithName(new QName(DEFAULT_FILTER));

        if (defaultFilterElement == null) {
            throw new SavanException("Protocols must have a 'defaultFilter' sub-element");
        }

        defaultFilter = defaultFilterElement.getText();
        protocol.setDefaultFilter(defaultFilter);
        protocolMap.put(protocol.getName(), protocol);
    }
View Full Code Here

Examples of org.asynchttpclient.ProxyServer.Protocol

        String host = properties.getProperty(PROXY_HOST);

        if (host != null) {
            int port = Integer.valueOf(properties.getProperty(PROXY_PORT, "80"));

            Protocol protocol;
            try {
                protocol = Protocol.valueOf(properties.getProperty(PROXY_PROTOCOL, "HTTP"));
            } catch (IllegalArgumentException e) {
                protocol = Protocol.HTTP;
            }
View Full Code Here

Examples of org.brixcms.jcr.wrapper.BrixNode.Protocol

        }));

        add(new Label("requiredProtocol", new Model<String>() {
            @Override
            public String getObject() {
                Protocol protocol = nodeModel.getObject().getRequiredProtocol();
                return getString(protocol.toString());
            }
        }));

        add(new Link<Void>("download") {
            @Override
View Full Code Here

Examples of org.glassfish.admin.amx.intf.config.grizzly.Protocol

        return (int) (long) getAdminListener().resolveLong("Port");
    }

    private String get_asadmin()
    {
        final Protocol protocol = networkConfig().getProtocols().getProtocol().get(ADMIN_LISTENER_NAME);
        return protocol.getHttp().resolveAttribute("DefaultVirtualServer");
    }
View Full Code Here

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

    }

    private void addAsadminProtocol(NetworkConfig config) throws TransactionFailure {
        ensureAdminThreadPool();
        final Protocols protocols = getProtocols(config);
        Protocol adminProtocol = protocols.findProtocol(ASADMIN_LISTENER);
        if (adminProtocol == null) {
            adminProtocol = (Protocol) ConfigSupport.apply(new SingleConfigCode<Protocols>() {
                public Object run(Protocols param) throws TransactionFailure {
                    final Protocol protocol = param.createChild(Protocol.class);
                    param.getProtocol().add(protocol);
                    protocol.setName(ASADMIN_LISTENER);
                    Http http = protocol.createChild(Http.class);
                    http.setFileCache(http.createChild(FileCache.class));
                    protocol.setHttp(http);
                    http.setDefaultVirtualServer(ASADMIN_VIRTUAL_SERVER);
                    http.setMaxConnections("250");
                    return protocol;
                }
            }, protocols);
View Full Code Here

Examples of org.glassfish.grizzly.http.Protocol

            super('H');
        }

        @Override
        StringBuilder format(StringBuilder builder, Request request, Response response, Date timeStamp, long responseNanos) {
            final Protocol protocol = request.getProtocol();
            if (protocol == null) return builder.append("-");
            switch (protocol) {
                case HTTP_0_9: return builder.append("HTTP/0.9");
                case HTTP_1_0: return builder.append("HTTP/1.0");
                case HTTP_1_1: return builder.append("HTTP/1.1");
View Full Code Here

Examples of org.jacorb.orb.etf.ListenEndpoint.Protocol

    private ProtocolAddressBase createProtocolAddress(String address_str)
    {
        final IIOPAddress address = new IIOPAddress();

        int proto_delim = address_str.indexOf (':');
        Protocol proto;
        try
        {
            proto = Protocol.valueOf(address_str.substring (0,proto_delim).toUpperCase(Locale.ENGLISH));
        }
        catch (IllegalArgumentException e)
View Full Code Here

Examples of org.jboss.as.clustering.jgroups.subsystem.Protocol

        System.out.println("parameter name = " + parameterName + ", value = " + value);

        super.validateParameter(parameterName, value);

        if (value.isDefined()) {
            final Protocol protocol = Protocol.valueOf(value.asString());
            if (protocol == null || !allowedValues.contains(protocol)) {
               // throw new OperationFailedException(new ModelNode().set(MESSAGES.invalidTargetName(allowedValues)));
               throw new OperationFailedException(new ModelNode().set("invalid value for " + protocol));
            }
        }
View Full Code Here

Examples of org.jclouds.trmk.vcloud_0_8.domain.Protocol

      VApp vApp = client.getVApp(vAppId);
      PublicIpAddress ip = null;
      String privateAddress = getLast(vApp.getNetworkToAddresses().values());
      for (int port : ports) {
         InternetService is = null;
         Protocol protocol;
         switch (port) {
         case 22:
            protocol = Protocol.TCP;
            break;
         case 80:
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.