Examples of Endpoint


Examples of org.jboss.test.ws.jaxws.jbws2901.Endpoint

   {
      URL wsdlURL = new URL(endpointURL + "?wsdl");
      QName serviceName = new QName(targetNS, "EndpointService");

      Service service = Service.create(wsdlURL, serviceName);
      Endpoint port = (Endpoint)service.getPort(Endpoint.class);

      Object retObj = port.echo("Hello");
      assertEquals("Hello", retObj);
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.webserviceref.Endpoint

    * Customize service-class-name, service-qname
    */
   public String testService1(String reqStr) throws Exception
   {
      EndpointService service = (EndpointService)iniCtx.lookup("java:comp/env/Service1");
      Endpoint port = service.getEndpointPort();
      return port.echo(reqStr);
   }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.Endpoint

      if (endpointClass == null)
      {
         throw new NullPointerException("Null endpoint class");
      }

      final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass);
      endpoint.setShortName(endpointName);
      dep.getService().addEndpoint(endpoint);

      return endpoint;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.Endpoint

      if (endpointClass == null)
      {
         throw new NullPointerException("Null endpoint class");
      }

      final Endpoint endpoint = this.deploymentModelFactory.newJMSEndpoint(endpointClass);
      endpoint.setShortName(endpointName);
      dep.getService().addEndpoint(endpoint);

      return endpoint;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.Endpoint

         final String ejbName = container.getComponentName();
         this.log.debug("EJB3 name: " + ejbName);
         final String ejbClass = container.getComponentClassName();
         this.log.debug("EJB3 class: " + ejbClass);

         final Endpoint ep = this.newHttpEndpoint(ejbClass, ejbName, dep);
         ep.setProperty(ASHelper.CONTAINER_NAME, container.getContainerName());
      }
   }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.Endpoint

         // iterate through all EJB3 endpoints
         for (final WebServiceDeclaration container : webServiceDeployment.getServiceEndpoints())
         {
            final String ejbName = container.getComponentName();
            final Endpoint endpoint = service.getEndpointByName(ejbName);
            if (endpoint != null && ASHelper.isWebServiceBean(container))
            {
               // build EJB 3 injections meta data
               final EnvironmentEntriesMetaData ejbEnvEntries = this.getEnvironmentEntries(ejbName, unit);
               final InjectionsMetaData injectionsMD = this.buildInjectionsMetaData(ejbEnvEntries, resolvers);

               // associate injections meta data with EJB 3 endpoint
               endpoint.addAttachment(InjectionsMetaData.class, injectionsMD);
            }
         }
      }
   }
View Full Code Here

Examples of org.jclouds.rest.annotations.Endpoint

   };

   protected Optional<URI> getEndpointFor(Invocation invocation) {
      URI endpoint = getEndpointInParametersOrNull(invocation, injector);
      if (endpoint == null) {
         Endpoint annotation;
         if (invocation.getInvokable().isAnnotationPresent(Endpoint.class)) {
            annotation = invocation.getInvokable().getAnnotation(Endpoint.class);
         } else if (invocation.getInvokable().getOwnerType().getRawType().isAnnotationPresent(Endpoint.class)) {
            annotation = invocation.getInvokable().getOwnerType().getRawType().getAnnotation(Endpoint.class);
         } else {
            logger.trace("no annotations on class or invocation.getInvoked(): %s", invocation.getInvokable());
            return Optional.absent();
         }
         endpoint = injector.getInstance(Key.get(uriSupplierLiteral, annotation.value())).get();
      }
      URI provider = injector.getInstance(Key.get(uriSupplierLiteral, org.jclouds.location.Provider.class)).get();
      return Optional.fromNullable(addHostIfMissing(endpoint, provider));
   }
View Full Code Here

Examples of org.jvnet.glassfish.comms.clb.core.EndPoint

            Socket serverAddress = getServerAddress(
                    serverInstance.getEndPoint(CLBConstants.SIP_PROTOCOL));
            Socket outgoingSocket =  null;
            //update via with proper param
            if(controller.getLocalInstance() != null){
                EndPoint endPoint = controller.getLocalInstance().getEndPoint(
                        CLBConstants.SIP_PROTOCOL);                             
                pushVia(request,
                        endPoint.getHost(),
                        endPoint.getPort(),
                        true);
                outgoingSocket = getServerAddress(endPoint);
            }else{
                pushVia(request, localSipTcpSocket.getHostName(),
                        localSipTcpSocket.getPort(), true);
View Full Code Here

Examples of org.jvnet.glassfish.comms.clb.proxy.api.Endpoint

    throws Exception {
        if (_logger.isLoggable(Level.FINEST)){
            _logger.log(Level.FINEST, "clb.proxy.test.loadbalancerlayer_begin");
        }
        HttpRequest httpReq = (HttpRequest) request;
        Endpoint remoteEndpoint = null;
        boolean ret = true;
        if (request.getHeader("ERRORTEST") != null) {
            response.setHeader("TESTHEADER", "ProxyTest");
            response.setErrorURI("testurl");
            response.setStatus(500);
            response.setMessage("Internal Server Error");
            _logger.log(Level.INFO, "clb.proxy.test.error_response");
            return false;
        }
        if ((httpReq.getHeader(LoadBalancerProxyConstants.HTTP_PROXY_HEADER) != null)) {
            Endpoint ep = new DefaultEndpoint();
            ep.setLocal(true);
            httpReq.setConvergedLoadBalancerEndpoint(ep);
            return false;
        }
        InetSocketAddress remoteHost = RoundRobinPolicy.getInetSocketAddress(request);
        if (_logger.isLoggable(Level.FINE)){
View Full Code Here

Examples of org.mortbay.io.EndPoint

        }
      
        Address address = destination.isProxied() ? destination.getProxy() : destination.getAddress();
        socket.connect(address.toSocketAddress());
       
        EndPoint endpoint=new SocketEndPoint(socket);
       
        final HttpConnection connection=new HttpConnection(_httpClient,endpoint,_httpClient.getHeaderBufferSize(),_httpClient.getRequestBufferSize());
        connection.setDestination(destination);
        destination.onNewConnection(connection);
        _httpClient.getThreadPool().dispatch(new Runnable()
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.