Examples of EndpointImpl


Examples of org.apache.cxf.jaxws22.EndpointImpl

    protected org.apache.cxf.jaxws.EndpointImpl createEndpointImpl(Bus bus,
                                              String bindingId,
                                              Object implementor,
                                              WebServiceFeature ... features) {
        if (isJaxWs22()) {
            return new EndpointImpl(bus, implementor, bindingId, features);
        }
        //couldn't find the 2.2 stuff, assume 2.1 behavior
        return super.createEndpointImpl(bus, bindingId, implementor, features);
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.runtime.impl.EndpointImpl

        ServiceAssemblyImpl sa = createServiceAssembly();
       
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        listener.setAssembly(sa);
       
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
        listener.endpointRegistered(endpoint);
        listener.setAssembly(null);
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
View Full Code Here

Examples of org.apache.woden.internal.wsdl20.EndpointImpl

  public void testTestAssertionEndpoint1061()
  {
    // Test that the assertion returns true for an endpoint with an absolute address.
  try
  {
    EndpointImpl endpoint = new EndpointImpl();
    endpoint.setAddress(new URI("http://www.sample.org"));
    if(!val.testAssertionEndpoint1061(endpoint, reporter))
    {
      fail("The testAssertionEndpoint1061 method returned false for an endpoint with an absolute address.");
    }
  }
  catch(URISyntaxException e)
  {
    fail("There was a problem creating the address URI for the test method " + e);
  }
  catch(WSDLException e)
  {
    fail("There was a problem running the test assertion method " + e);
  }
 
    // Test that the assertion returns false for an endpoint with a relative address.
  try
  {
    EndpointImpl endpoint = new EndpointImpl();
    endpoint.setAddress(new URI("sample.org"));
    if(val.testAssertionEndpoint1061(endpoint, reporter))
    {
      fail("The testAssertionEndpoint1061 method returned true for an endpoint with a relative address.");
    }
  }
  catch(URISyntaxException e)
  {
    fail("There was a problem creating the address URI for the test method " + e);
  }
  catch(WSDLException e)
  {
    fail("There was a problem running the test assertion method " + e);
  }
 
    // Test that the assertion returns true for an endpoint with a null address. This will be
  // caught be schema validation.
  try
  {
    EndpointImpl endpoint = new EndpointImpl();
    if(!val.testAssertionEndpoint1061(endpoint, reporter))
    {
      fail("The testAssertionEndpoint1061 method returned false for an endpoint with a null address.");
    }
  }
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.EndpointImpl

    @Override
    public Endpoint createEndpoint(String bindingId, Object implementor) {
        Endpoint ep = null;
        if (EndpointUtils.isValidImplementor(implementor)) {
            ep = new EndpointImpl(Bus.getCurrent(), implementor, bindingId);
            return ep;
        } else {
            throw new WebServiceException(new Message("INVALID_IMPLEMENTOR_EXC", LOG).toString());
        }
    }
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.EndpointImpl

            } else {
                ref =
                    EndpointReferenceUtils.getEndpointReference(bus.getWSDLManager(),
                                                            impl);
            }
            EndpointImpl ep = new EndpointImpl(bus, impl, null, ref);
           
            //doesn't really matter what URL is used here
            ep.publish("http://localhost" + (urlPat.charAt(0) == '/' ? "" : "/") + urlPat);
        } catch (ClassNotFoundException ex) {
            // TODO Auto-generated catch block
            ex.printStackTrace();
        } catch (InstantiationException ex) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.EndpointImpl

            if (classes.size() > 0) {
                LOG.info("publishing endpoint");
                isProvider = true;
                Class<?> clz = classes.iterator().next();
                serviceImplementation = clz.newInstance();
                endpoint = new EndpointImpl(bus, serviceImplementation, null);
                // dummy endpoint to publish on
                endpoint.publish("http://foo/bar/baz");
            } else {
                LOG.info("starting consumer");
                classes = finder.findServiceConsumerClasses();
View Full Code Here

Examples of org.objectweb.celtix.bus.jaxws.EndpointImpl

        GeronimoTransportFactory tfactory = getTransportFactory();
        assert tfactory != null : "failed to get transport factory";
       
        try {
            tfactory.setCurrentContainer(this);
            EndpointImpl ep = new EndpointImpl(getBus(), target,
                                               "http://schemas.xmlsoap.org/wsdl/soap/http", ref);
            LOG.fine("publishing endpoint " + ep);
            ep.publish("http://localhost/");
            publishedEndpoint = ep;
           
            assert serverTransport != null : "server transport not initialized";
        } finally {
            tfactory.setCurrentContainer(null);
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.