Examples of EndpointMetaData


Examples of com.sun.enterprise.jbi.serviceengine.util.soap.EndpointMetaData

    }

    private synchronized void initializeEndpointMetaData() {
        if(endpointMetaData == null) {
            try {
                EndpointMetaData emd = new EndpointMetaData(readWSDLDefinition(),
                        serviceName,
                        endpointName);
                emd.resolve();
                endpointMetaData = emd;
            } catch(Exception ex) {
                ex.printStackTrace();
            }
        }
View Full Code Here

Examples of com.sun.enterprise.jbi.serviceengine.util.soap.EndpointMetaData

        String clientCache = System.getProperty(JBIConstants.CLIENT_CACHE);
        if("false".equalsIgnoreCase(clientCache)) {
            return createEndpointMetaData();
        } else {
            String key = wsdlLocation.toString();
            EndpointMetaData emd = emdCache.get(key);
            if(emd == null) {
                emd = createEndpointMetaData();
                emdCache.put(key, emd);
            }
            return emd;
View Full Code Here

Examples of com.sun.enterprise.jbi.serviceengine.util.soap.EndpointMetaData

            return emd;
        }
    }
   
    private EndpointMetaData createEndpointMetaData() {
        EndpointMetaData emd = new EndpointMetaData(wsdlLocation, service, endpointName);
        emd.resolve();
        return emd;
    }
View Full Code Here

Examples of edu.uci.ics.jung.io.graphml.EndpointMetadata

    public EndpointMetadata parse(XMLEventReader xmlEventReader, StartElement start)
            throws GraphIOException {

        try {
            // Create the new endpoint.
            EndpointMetadata endpoint = new EndpointMetadata();

            // Parse the attributes.
            Iterator iterator = start.getAttributes();
            while (iterator.hasNext()) {
                Attribute attribute = (Attribute) iterator.next();
                String name = attribute.getName().getLocalPart();
                String value = attribute.getValue();
                if (endpoint.getId() == null && GraphMLConstants.ID_NAME.equals(name)) {
                    endpoint.setId(value);
                } if (endpoint.getPort() == null && GraphMLConstants.PORT_NAME.equals(name)) {
                    endpoint.setPort(value);
                } if (endpoint.getNode() == null && GraphMLConstants.NODE_NAME.equals(name)) {
                    endpoint.setNode(value);
                } if (GraphMLConstants.TYPE_NAME.equals(name)) {
                    EndpointType t = endpointTypeMap.get(value);
                    if( t == null ) {
                        t = EndpointType.UNDIR;
                    }
                    endpoint.setEndpointType(t);
                } else {
                    endpoint.setProperty(name, value);
                }
            }

            // Make sure the node has been set.
            if (endpoint.getNode() == null) {
                throw new GraphIOException(
                        "Element 'endpoint' is missing attribute 'node'");
            }

            while (xmlEventReader.hasNext()) {

                XMLEvent event = xmlEventReader.nextEvent();
                if (event.isStartElement()) {
                    StartElement element = (StartElement) event;

                    String name = element.getName().getLocalPart();
                    if(GraphMLConstants.DESC_NAME.equals(name)) {
                        String desc = (String)getParser(name).parse(xmlEventReader, element);
                        endpoint.setDescription(desc);
                    } else {
                       
                        // Treat anything else as unknown
                        getUnknownParser().parse(xmlEventReader, element);
                    }
View Full Code Here

Examples of org.eclipse.jetty.websocket.jsr356.metadata.EndpointMetadata

        this.webSocketServerFactory.addSessionFactory(new JsrSessionFactory(this,this));
    }
   
    public EndpointInstance newClientEndpointInstance(Object endpoint, ServerEndpointConfig config, String path)
    {
        EndpointMetadata metadata = getClientEndpointMetadata(endpoint.getClass(),config);
        ServerEndpointConfig cec = config;
        if (config == null)
        {
            if (metadata instanceof AnnotatedServerEndpointMetadata)
            {
View Full Code Here

Examples of org.jboss.as.xts.jandex.EndpointMetaData

        final List<WebserviceDescriptionMetaData> webserviceDescriptions = new ArrayList<WebserviceDescriptionMetaData>();
        boolean modifiedWSMeta = false;

        for (String endpoint : getDeploymentClasses(unit)) {
            try {
                final EndpointMetaData endpointMetaData = EndpointMetaData.build(unit, endpoint);

                if (endpointMetaData.isXTSEnabled()) {
                    XTSDeploymentMarker.mark(unit);
                    final boolean result = updateXTSEndpoint(endpoint, endpointMetaData, webserviceDescriptions, unit);
                    modifiedWSMeta = modifiedWSMeta || result;
                }
            } catch (XTSException e) {
View Full Code Here

Examples of org.jboss.soa.dsp.EndpointMetaData

      try
      {
        final ClassLoader classLoader = JAXWSBindingContext.class.getClassLoader(); //Thread.currentThread().getContextClassLoader();
        String endpointId = UUID.randomUUID().toString();

        EndpointMetaData endpointMD = new EndpointMetaData(
            myRoleEndpoint.serviceName, myRoleEndpoint.portName,
            processId, endpointId
        );

        ref = endpointManager.createEndpoint(endpointMD, wsdlReference, classLoader);
View Full Code Here

Examples of org.jboss.soa.dsp.EndpointMetaData

    // 3) if multiple EPRs found, use some mechanism for selecting
    // 4) find transport layer associated with the EPR
    // 5) create channel on transport layer associated with EPR

    String endpointId = UUID.randomUUID().toString();
    EndpointMetaData endpointMD = new EndpointMetaData(
        initialPartnerEndpoint.serviceName, initialPartnerEndpoint.portName,
        processId, endpointId
    );
   
    ProcessConf pconf=engine._store.getProcessConfiguration(processId);
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.EndpointMetaData

   }

   @Override
   public void setConfigName(String configName, String configFile)
   {
      EndpointMetaData epMetaData = getEndpointMetaData();
      epMetaData.setConfigName(configName, configFile);

      // Reinitialize the client handler chain
      jaxrpcService.setupHandlerChain(epMetaData);
   }
View Full Code Here

Examples of org.jboss.ws.metadata.umdm.EndpointMetaData

   {

      WSDLService wsdlService = new WSDLService(wsdl, service.getServiceName());
      wsdl.addService(wsdlService);

      EndpointMetaData endpoint = null;
      for (Iterator<EndpointMetaData> iter = service.getEndpoints().iterator(); iter.hasNext();)
      {
         endpoint = iter.next();
         processEndpoint(wsdlService, endpoint);
      }

      if (endpoint == null)
         throw new IllegalStateException("A service must have an endpoint");

      wsdlService.setInterfaceName(endpoint.getPortName());
   }
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.