Tabnine Logo
EndpointImpl.getBinding
Code IndexAdd Tabnine to your IDE (free)

How to use
getBinding
method
in
org.apache.cxf.jaxws.EndpointImpl

Best Java code snippets using org.apache.cxf.jaxws.EndpointImpl.getBinding (Showing top 6 results out of 315)

origin: org.apache.cxf/cxf-rt-frontend-jaxws

public EndpointReference getEndpointReference(Element... referenceParameters) {
  if (!isPublished()) {
    throw new WebServiceException(new org.apache.cxf.common.i18n.Message("ENDPOINT_NOT_PUBLISHED",
                                       LOG).toString());
  }
  if (getBinding() instanceof HTTPBinding) {
    throw new UnsupportedOperationException(new org.apache.cxf.common.i18n.Message(
                          "GET_ENDPOINTREFERENCE_UNSUPPORTED_BINDING",
                          LOG).toString());
  }
  W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
  builder.address(address);
  builder.serviceName(serviceName);
  builder.endpointName(endpointName);
  if (referenceParameters != null) {
    for (Element referenceParameter : referenceParameters) {
      builder.referenceParameter(referenceParameter);
    }
  }
  builder.wsdlDocumentLocation(wsdlLocation);
  ClassLoader cl = Thread.currentThread().getContextClassLoader();
  try {
    Thread.currentThread().setContextClassLoader(EndpointReferenceBuilder.class.getClassLoader());
    return builder.build();
  } finally {
    Thread.currentThread().setContextClassLoader(cl);
  }
}
origin: apache/cxf

public EndpointReference getEndpointReference(Element... referenceParameters) {
  if (!isPublished()) {
    throw new WebServiceException(new org.apache.cxf.common.i18n.Message("ENDPOINT_NOT_PUBLISHED",
                                       LOG).toString());
  }
  if (getBinding() instanceof HTTPBinding) {
    throw new UnsupportedOperationException(new org.apache.cxf.common.i18n.Message(
                          "GET_ENDPOINTREFERENCE_UNSUPPORTED_BINDING",
                          LOG).toString());
  }
  W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
  builder.address(address);
  builder.serviceName(serviceName);
  builder.endpointName(endpointName);
  if (referenceParameters != null) {
    for (Element referenceParameter : referenceParameters) {
      builder.referenceParameter(referenceParameter);
    }
  }
  builder.wsdlDocumentLocation(wsdlLocation);
  ClassLoader cl = Thread.currentThread().getContextClassLoader();
  try {
    Thread.currentThread().setContextClassLoader(EndpointReferenceBuilder.class.getClassLoader());
    return builder.build();
  } finally {
    Thread.currentThread().setContextClassLoader(cl);
  }
}
origin: apache/cxf

protected void run() {
  Object implementor = new TestMtomImpl();
  String address = "http://localhost:" + PORT + "/mime-test";
  String addressProvider = "http://localhost:" + PORT + "/mime-test-provider";
  try {
    jaxep = (EndpointImpl) javax.xml.ws.Endpoint.publish(address, implementor);
    Endpoint ep = jaxep.getServer().getEndpoint();
    ep.getInInterceptors().add(new TestMultipartMessageInterceptor());
    ep.getOutInterceptors().add(new TestAttachmentOutInterceptor());
    jaxep.getInInterceptors().add(new LoggingInInterceptor());
    jaxep.getOutInterceptors().add(new LoggingOutInterceptor());
    SOAPBinding jaxWsSoapBinding = (SOAPBinding) jaxep.getBinding();
    jaxWsSoapBinding.setMTOMEnabled(true);
    EndpointImpl endpoint =
      (EndpointImpl)javax.xml.ws.Endpoint.publish(addressProvider, new TestMtomProviderImpl());
    endpoint.getProperties().put("schema-validation-enabled", "true");
    endpoint.getInInterceptors().add(new LoggingInInterceptor());
    endpoint.getOutInterceptors().add(new LoggingOutInterceptor());
  } catch (Exception e) {
    Thread.currentThread().interrupt();
  }
}
public void tearDown() {
origin: apache/cxf

@BeforeClass
public static void startServers() throws Exception {
  Object implementor = new TestMtomJMSImpl();
  bus = BusFactory.getDefaultBus();
  ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
  PooledConnectionFactory cfp = new PooledConnectionFactory(cf);
  cff = new ConnectionFactoryFeature(cfp);
  EndpointImpl ep = (EndpointImpl)Endpoint.create(implementor);
  ep.getFeatures().add(cff);
  ep.getInInterceptors().add(new TestMultipartMessageInterceptor());
  ep.getOutInterceptors().add(new TestAttachmentOutInterceptor());
  //ep.getInInterceptors().add(new LoggingInInterceptor());
  //ep.getOutInterceptors().add(new LoggingOutInterceptor());
  SOAPBinding jaxWsSoapBinding = (SOAPBinding)ep.getBinding();
  jaxWsSoapBinding.setMTOMEnabled(true);
  ep.publish();
}
origin: apache/cxf

@BeforeClass
public static void startServers() throws Exception {
  broker = new EmbeddedJMSBrokerLauncher();
  broker.startInProcess();
  bus = BusFactory.getDefaultBus();
  broker.updateWsdl(bus, "testutils/jms_test_mtom.wsdl");
  Object mtom = new JMSMTOMImpl();
  EndpointImpl ep = (EndpointImpl)Endpoint
    .publish("jms:jndi:dynamicQueues/test.cxf.jmstransport.queue&receiveTimeout=10000", mtom);
  Binding binding = ep.getBinding();
  ((SOAPBinding)binding).setMTOMEnabled(true);
}
origin: roskart/dropwizard-jaxws

((SOAPBinding)cxfendpoint.getBinding()).setMTOMEnabled(true);
org.apache.cxf.jaxwsEndpointImplgetBinding

Popular methods of EndpointImpl

  • publish
  • <init>
  • setWsdlLocation
  • setServiceName
  • getInInterceptors
  • getServer
  • getFeatures
  • getOutInterceptors
  • stop
  • getProperties
  • setAddress
  • setEndpointName
  • setAddress,
  • setEndpointName,
  • getOutFaultInterceptors,
  • getService,
  • doPublish,
  • getAddress,
  • getServerFactory,
  • setFeatures,
  • setImplementorClass

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now