congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EndpointReferenceUtils.portNameMatches
Code IndexAdd Tabnine to your IDE (free)

How to use
portNameMatches
method
in
org.apache.cxf.wsdl.EndpointReferenceUtils

Best Java code snippets using org.apache.cxf.wsdl.EndpointReferenceUtils.portNameMatches (Showing top 2 results out of 315)

origin: org.apache.cxf/cxf-api

private static MultiplexDestination getMatchingMultiplexDestination(QName serviceQName, String portName,
                                  Bus bus) {
  MultiplexDestination destination = null;
  ServerRegistry serverRegistry = bus.getExtension(ServerRegistry.class);
  if (null != serverRegistry) {
    List<Server> servers = serverRegistry.getServers();
    for (Server s : servers) {
      QName targetServiceQName = s.getEndpoint().getEndpointInfo().getService().getName();
      if (serviceQName.equals(targetServiceQName) && portNameMatches(s, portName)) {
        Destination dest = s.getDestination();
        if (dest instanceof MultiplexDestination) {
          destination = (MultiplexDestination)dest;
          break;
        }
      }
    }
  } else {
    LOG.log(Level.WARNING,
        "Failed to locate service matching " + serviceQName 
        + ", because the bus ServerRegistry extension provider is null");
  }
  return destination;
}
origin: org.apache.cxf/cxf-bundle-jaxrs

private static MultiplexDestination getMatchingMultiplexDestination(QName serviceQName, String portName,
                                  Bus bus) {
  MultiplexDestination destination = null;
  ServerRegistry serverRegistry = bus.getExtension(ServerRegistry.class);
  if (null != serverRegistry) {
    List<Server> servers = serverRegistry.getServers();
    for (Server s : servers) {
      QName targetServiceQName = s.getEndpoint().getEndpointInfo().getService().getName();
      if (serviceQName.equals(targetServiceQName) && portNameMatches(s, portName)) {
        Destination dest = s.getDestination();
        if (dest instanceof MultiplexDestination) {
          destination = (MultiplexDestination)dest;
          break;
        }
      }
    }
  } else {
    LOG.log(Level.WARNING,
        "Failed to locate service matching " + serviceQName 
        + ", because the bus ServerRegistry extension provider is null");
  }
  return destination;
}
org.apache.cxf.wsdlEndpointReferenceUtilsportNameMatches

Popular methods of EndpointReferenceUtils

  • getAnonymousEndpointReference
    Create an anonymous endpoint reference.
  • getServiceName
    Gets the service name of the provided endpoint reference.
  • getPortName
    Gets the port name of the provided endpoint reference.
  • getSchema
  • setServiceAndPortName
    Sets the service and port name of the provided endpoint reference.
  • createContextForEPR
  • createSchema
  • duplicate
    Create a duplicate endpoint reference sharing all atributes
  • findNamespaceHack
  • getAddress
    Get the address from the provided endpoint reference.
  • getJAXBContextForEPR
  • getMatchingMultiplexDestination
  • getJAXBContextForEPR,
  • getMatchingMultiplexDestination,
  • getNameSpaceUri,
  • getService,
  • getServiceNameType,
  • getWSDLDefinition,
  • getWSDLLocation,
  • mint,
  • setWSDLLocation

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTextField (javax.swing)
  • Top 12 Jupyter Notebook Extensions
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