Examples of EndpointImpl


Examples of com.peterhi.working.EndpointImpl

import com.peterhi.working.Listener;

public class Server {

  public static void main(String[] args) throws Exception {
    EndpointImpl endpoint = new EndpointImpl(new DatagramSocket(22222));
    endpoint.addListener(new Listener() {
      @Override
      public void update(Event event) {
        try {
          InputStream stream = event.getInputStream();
         
          if (stream.available() == 0) {
            System.out.println();
          }
         
          System.out.println("Received " + stream.available() + " bytes of " +
            (event.isReliable() ? "reliable" : "unreliable") + " data.");
        } catch (Exception ex) {
          ex.printStackTrace();
        }
      }
    });
   
    endpoint.run();
  }
View Full Code Here

Examples of com.sun.xml.internal.ws.transport.http.server.EndpointImpl

     */
    public static final ProviderImpl INSTANCE = new ProviderImpl();

    @Override
    public Endpoint createEndpoint(String bindingId, Object implementor) {
        return new EndpointImpl(
            (bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementor.getClass()),
            implementor);
    }
View Full Code Here

Examples of com.sun.xml.ws.transport.http.server.EndpointImpl

     */
    public static final ProviderImpl INSTANCE = new ProviderImpl();

    @Override
    public Endpoint createEndpoint(String bindingId, Object implementor) {
        return new EndpointImpl(
            (bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementor.getClass()),
            implementor);
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.server.endpoint.EndpointImpl

    public Endpoint createAndPublishEndpoint(String s, Object obj) {
    return createAndPublishEndpoint(s, obj, (WebServiceFeature[]) null);
    }

    public Endpoint createAndPublishEndpoint(String s, Object obj, WebServiceFeature... features) {
        Endpoint ep = new EndpointImpl(obj);
        ep.publish(s);
        return ep;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.server.endpoint.EndpointImpl

        return createEndpoint(binding, obj, (WebServiceFeature[])null);
    }

    //TODO: Fix the Endpoint to support WebServiceFeatures (for non-JEE users)
    public Endpoint createEndpoint(String binding, Object obj, WebServiceFeature... features) {
        return new EndpointImpl(obj);
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointImpl

        bean.setInvoker(invoker);

        Service service = bean.create();
       
        EndpointInfo endpointInfo = service.getEndpointInfo(new QName(ns, "SoapPortRPCLit"));
        Endpoint endpoint = new EndpointImpl(getBus(), service, endpointInfo);
        exchange.put(Service.class, service);
        exchange.put(Endpoint.class, endpoint);
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointImpl

        bean.setInvoker(invoker);

        Service service = bean.create();
       
        EndpointInfo endpointInfo = service.getEndpointInfo(new QName(ns, "CalculatorPort"));
        Endpoint endpoint = new EndpointImpl(getBus(), service, endpointInfo);
        exchange.put(Service.class, service);
        exchange.put(Endpoint.class, endpoint);       
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointImpl

        EndpointInfo epr = new EndpointInfo();
        epr.setAddress(baseAddress);
        d.getEndpointInfo();
        EasyMock.expectLastCall().andReturn(epr).anyTimes();

        Endpoint endpoint = new EndpointImpl(null, null, epr);
        e.put(Endpoint.class, endpoint);

        endpoint.put(ProviderFactory.class.getName(), ProviderFactory.getInstance());

        e.setDestination(d);
        BindingInfo bi = control.createMock(BindingInfo.class);
        epr.setBinding(bi);
        bi.getProperties();
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointImpl

        if (service == null) {
            service = serviceFactory.create();
        }

        EndpointInfo ei = createEndpointInfo();
        Endpoint ep = new EndpointImpl(getBus(), getServiceFactory().getService(), ei);
       
        if (properties != null) {
            ep.putAll(properties);
        }
       
        if (getInInterceptors() != null) {
            ep.getInInterceptors().addAll(getInInterceptors());
        }
        if (getOutInterceptors() != null) {
            ep.getOutInterceptors().addAll(getOutInterceptors());
        }
        if (getInFaultInterceptors() != null) {
            ep.getInFaultInterceptors().addAll(getInFaultInterceptors());
        }
        if (getOutFaultInterceptors() != null) {
            ep.getOutFaultInterceptors().addAll(getOutFaultInterceptors());
        }
        return ep;
    }
View Full Code Here

Examples of org.apache.cxf.endpoint.EndpointImpl

    public void updateBindingOperation(BindingOperationInfo boi) {
        //nothing
    }

    public Endpoint createEndpoint(EndpointInfo ei) throws EndpointException {
        return new EndpointImpl(getBus(), getService(), ei);
    }
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.