Examples of EndPoint


Examples of org.apache.marmotta.ldclient.api.endpoint.Endpoint

    public ClientResponse retrieveResource(String resource) throws DataRetrievalException {
        try {
            retrievalSemaphore.acquire();
            if(!config.isExcludedUri(resource)) {

                Endpoint endpoint = getEndpoint(resource);

                if(endpoint != null) {
                    DataProvider provider = getDataProvider(endpoint);
                    if(provider != null) {
                        return provider.retrieveResource(resource, this, endpoint);
                    } else {
                        log.error("no service provider for type {}",endpoint.getType());
                    }
                } else {
                    // TODO: the fallback should at least be a Linked Data handler, so maybe we should merge the ldclient-provider-rdf?
                    // TODO: determine service provider from connection handshaking / MIME type
                    throw new UnsupportedOperationException("not implemented: determine service provider from connection handshaking / MIME type");
View Full Code Here

Examples of org.apache.ode.bpel.iapi.Endpoint

            List<Reference> theReferences = implementation.getReferences();
            // Create an endpoint for each reference, using the reference name as the "service"
            // name, combined with http://tuscany.apache.org to make a QName
            for( Reference reference : theReferences ) {
                invokeEndpoints.put( reference.getName(),
                                     new Endpoint( new QName( TUSCANY_NAMESPACE, reference.getName() ), "ReferencePort"));
            } // end for
        } // end if
        return invokeEndpoints;
    } // end getInvokeEndpoints
View Full Code Here

Examples of org.apache.sandesha2.wsrm.Endpoint

 
          // Setting sequence properties for the outgoing sequence.
          // Only will be used by the server side response path. Will
          // be wasted properties for the client side.
           
          Endpoint endpoint = offer.getEndpoint();
          if (endpoint!=null) {
            // setting the OfferedEndpoint
            rMSBean.setOfferedEndPoint(endpoint.getEPR().getAddress());
          }
   
          rmdBean.setOutboundInternalSequence(outgoingSideInternalSequenceId);
          RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
          rmdBeanMgr.update(rmdBean);
View Full Code Here

Examples of org.apache.servicemix.common.Endpoint

            su = new ServiceUnit();
            su.setComponent(WSNSpringComponent.this);
            WSNDeployer deployer = new WSNDeployer(WSNSpringComponent.this);
            if (resources != null) {
                for (int i = 0; i < resources.length; i++) {
                    Endpoint ep = deployer.createEndpoint(resources[i].getURL());
                    ep.setServiceUnit(su);
                    su.addEndpoint(ep);
                }
            }
            if (requests != null) {
                for (int i = 0; i < requests.length; i++) {
                    Endpoint ep = deployer.createEndpoint(requests[i]);
                    ep.setServiceUnit(su);
                    su.addEndpoint(ep);
                }
            }
            getRegistry().registerServiceUnit(su);
        }
View Full Code Here

Examples of org.apache.servicemix.jbi.framework.Endpoint

        writer.println();

        List componentEndpointLinks = new ArrayList();
        Collection endpointMBeans = registry.getEndpointRegistry().getEndpointMBeans();
        for (Iterator iter = endpointMBeans.iterator(); iter.hasNext();) {
            Endpoint endpoint = (Endpoint) iter.next();
            String name = endpoint.getEndpointName();
            String componentName = encode(endpoint.getComponentName());
            String id = encode(name);
            writer.print(id);
            writer.print(" [ label=\"");
            writer.print(name);
            writer.println("\" ];");
View Full Code Here

Examples of org.apache.servicemix.nmr.api.Endpoint

                exchange.setProperty(MessageExchange.class, me);
            }
        }
        // Translate the destination endpoint
        if (((InternalExchange) exchange).getDestination() != null && me.getEndpoint() == null) {
            Endpoint ep = ((InternalExchange) exchange).getDestination();
            Map<String, ?> props = context.getNmr().getEndpointRegistry().getProperties(ep);
            String strSvcName = (String) props.get(Endpoint.SERVICE_NAME);
            QName serviceName = (strSvcName != null && strSvcName.length() > 0) ? QName.valueOf(strSvcName) : DEFAULT_SERVICE_NAME;
            String endpointName = (String) props.get(Endpoint.ENDPOINT_NAME);
            if (endpointName == null) {
View Full Code Here

Examples of org.apache.servicemix.web.model.Endpoint

        return new Factory() {
            private String objectName;
            private boolean showWsdl;
            public Object getBean() {
                try {
                    Endpoint ep = registry.getEndpoint(ObjectNameManager.getInstance(objectName));
                    ep.setShowWsdl(showWsdl);
                    return ep;
                } catch (MalformedObjectNameException e) {
                    return null;
                }
            }
View Full Code Here

Examples of org.apache.shindig.gadgets.spec.BaseOAuthService.EndPoint

              + arguments.getServiceName() + ".  Known services: "
              + Joiner.on(',').join(oauthSpec.getServices().keySet()) + '.', null);
    }

    String authorizationUrl = null;
    final EndPoint authorizationUrlEndpoint = service.getAuthorizationUrl();
    if (authorizationUrlEndpoint != null) {
      authorizationUrl = authorizationUrlEndpoint.url.toString();
    }

    String tokenUrl = null;
    final EndPoint tokenUrlEndpoint = service.getTokenUrl();
    if (tokenUrlEndpoint != null) {
      tokenUrl = tokenUrlEndpoint.url.toString();
    }

    final OAuth2SpecInfo ret = new OAuth2SpecInfo(authorizationUrl, tokenUrl, service.getScope());
View Full Code Here

Examples of org.apache.synapse.config.Endpoint

                synCtx.getWSAAction() : "null"));
            log.debug("Body : \n" + synCtx.getEnvelope());
            synCtx.getEnvironment().send(synCtx);

        } else if (endpoints.size() == 1) {
            Endpoint singleEndpoint = (Endpoint) endpoints.get(0);
            String eprAddress = null;
            if (singleEndpoint.getAddress() != null) {
                eprAddress = singleEndpoint.getAddress().toString();
            } else {
                singleEndpoint = synCtx.getConfiguration().getNamedEndpoint(
                    singleEndpoint.getRef());
                eprAddress = singleEndpoint.getAddress().toString();
            }
            if (shouldTrace) {
                trace.trace("Sending to Endpoint : " + eprAddress);
            }
            if (singleEndpoint.isForcePOX()) {
              synCtx.setDoingPOX(true);
            } else if (singleEndpoint.isForceSOAP()) {
              synCtx.setDoingPOX(false);
            }

            if (singleEndpoint.isUseMTOM()) {
                synCtx.setDoingMTOM(true);
            } else if (singleEndpoint.isUseSwa()) {
                synCtx.setDoingSWA(true);
            }

            if (singleEndpoint.isUseSeparateListener())
            {
              synCtx.setProperty(Constants.OUTFLOW_USE_SEPARATE_LISTENER, Boolean.TRUE);
            }
           
            log.debug("Sending message to endpoint :: name = " +
                singleEndpoint.getName() + " resolved address = " + eprAddress);

            synCtx.setTo(new EndpointReference(eprAddress));
            log.debug("Sending To: " + (synCtx.getTo() != null ?
                synCtx.getTo().getAddress() : "null"));
            log.debug("SOAPAction: " + (synCtx.getWSAAction() != null ?
                synCtx.getWSAAction() : "null"));
            log.debug("Body : \n" + synCtx.getEnvelope());

            // if RM is turned on
            if (singleEndpoint.isReliableMessagingOn()) {
                synCtx.setProperty(Constants.OUTFLOW_ADDRESSING_ON, Boolean.TRUE);
                synCtx.setProperty(Constants.OUTFLOW_RM_ON, Boolean.TRUE);
                if (singleEndpoint.getWsRMPolicyKey() != null) {
                    synCtx.setProperty(Constants.OUTFLOW_RM_POLICY,
                        singleEndpoint.getWsRMPolicyKey());
                }
            }

            // if WS Security is specified
            if (singleEndpoint.isSecurityOn()) {
                synCtx.setProperty(Constants.OUTFLOW_ADDRESSING_ON, Boolean.TRUE);
                synCtx.setProperty(Constants.OUTFLOW_SECURITY_ON, Boolean.TRUE);
                if (singleEndpoint.getWsSecPolicyKey() != null) {
                    synCtx.setProperty(Constants.OUTFLOW_SEC_POLICY,
                        singleEndpoint.getWsSecPolicyKey());
                }
            }

            // if WS Addressing is specified
            if (singleEndpoint.isAddressingOn()) {
                synCtx.setProperty(Constants.OUTFLOW_ADDRESSING_ON, Boolean.TRUE);
            }

            synCtx.getEnvironment().send(synCtx);
View Full Code Here

Examples of org.apache.synapse.endpoints.Endpoint

    public static Endpoint defineEndpoint(SynapseConfiguration config, OMElement ele,
                                          Properties properties) {

        String name = ele.getAttributeValue(new QName(XMLConfigConstants.NULL_NAMESPACE, "name"));
        Endpoint endpoint = null;
        if (name != null) {
            try {
                endpoint = EndpointFactory.getEndpointFromElement(ele, false, properties);
                if (endpoint != null) {
                    config.addEndpoint(name.trim(), endpoint);
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.