Tabnine Logo
EndpointReferenceUtils.setServiceAndPortName
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.cxf/cxf-api

/**
 * Create an endpoint reference for the provided wsdl, service and portname.
 * @param wsdlUrl - url of the wsdl that describes the service.
 * @param serviceName - the <code>QName</code> of the service.
 * @param portName - the name of the port.
 * @return EndpointReferenceType - the endpoint reference
 */
public static EndpointReferenceType getEndpointReference(URL wsdlUrl, 
                             QName serviceName,
                             String portName) {
  EndpointReferenceType reference = 
    WSAEndpointReferenceUtils.createEndpointReferenceWithMetadata();
  setServiceAndPortName(reference, serviceName, portName);
  //TODO To Ensure it is a valid URI syntax.
  setWSDLLocation(reference, wsdlUrl.toString());
  return reference;
}

origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Create an endpoint reference for the provided wsdl, service and portname.
 * @param wsdlUrl - url of the wsdl that describes the service.
 * @param serviceName - the <code>QName</code> of the service.
 * @param portName - the name of the port.
 * @return EndpointReferenceType - the endpoint reference
 */
public static EndpointReferenceType getEndpointReference(URL wsdlUrl, 
                             QName serviceName,
                             String portName) {
  EndpointReferenceType reference = 
    WSAEndpointReferenceUtils.createEndpointReferenceWithMetadata();
  setServiceAndPortName(reference, serviceName, portName);
  //TODO To Ensure it is a valid URI syntax.
  setWSDLLocation(reference, wsdlUrl.toString());
  return reference;
}

origin: org.apache.cxf/cxf-api

/**
 * Get the target endpoint reference.
 * 
 * @param ei the corresponding EndpointInfo
 * @param t the given target EPR if available
 * @param bus the Bus
 * @return the actual target
 */
protected static EndpointReferenceType getTargetReference(EndpointInfo ei,
                             EndpointReferenceType t,
                             Bus bus) {
  EndpointReferenceType ref = null;
  if (null == t) {
    ref = new EndpointReferenceType();
    AttributedURIType address = new AttributedURIType();
    address.setValue(ei.getAddress());
    ref.setAddress(address);
    if (ei.getService() != null) {
      EndpointReferenceUtils.setServiceAndPortName(ref, 
                             ei.getService().getName(), 
                             ei.getName().getLocalPart());
    }
  } else {
    ref = t;
  }
  return ref;
}

origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Get the target endpoint reference.
 * 
 * @param ei the corresponding EndpointInfo
 * @param t the given target EPR if available
 * @param bus the Bus
 * @return the actual target
 */
protected static EndpointReferenceType getTargetReference(EndpointInfo ei,
                             EndpointReferenceType t,
                             Bus bus) {
  EndpointReferenceType ref = null;
  if (null == t) {
    ref = new EndpointReferenceType();
    AttributedURIType address = new AttributedURIType();
    address.setValue(ei.getAddress());
    ref.setAddress(address);
    if (ei.getService() != null) {
      EndpointReferenceUtils.setServiceAndPortName(ref, 
                             ei.getService().getName(), 
                             ei.getName().getLocalPart());
    }
  } else {
    ref = t;
  }
  return ref;
}

origin: org.mule.modules/mule-module-cxf

/**
 * Get the target endpoint reference.
 * 
 * @param ei the corresponding EndpointInfo
 * @param t the given target EPR if available
 * @return the actual target
 */
protected static EndpointReferenceType getTargetReference(EndpointInfo ei, EndpointReferenceType t)
{
  EndpointReferenceType ref = null;
  if (null == t)
  {
    ref = new EndpointReferenceType();
    AttributedURIType address = new AttributedURIType();
    address.setValue(ei.getAddress());
    ref.setAddress(address);
    if (ei.getService() != null)
    {
      EndpointReferenceUtils.setServiceAndPortName(ref, ei.getService().getName(), ei.getName()
        .getLocalPart());
    }
  }
  else
  {
    ref = t;
  }
  return ref;
}
origin: org.apache.cxf/cxf-api

/**
 * Convert from 2004/03 EndpointReferenceType to 2005/08 EndpointReferenceType.
 * 
 * @param exposed the 2004/03 EndpointReferenceType
 * @return an equivalent 2005/08 EndpointReferenceType
 */
public static EndpointReferenceType 
convert(org.apache.cxf.ws.addressing.v200403.EndpointReferenceType exposed) {
  EndpointReferenceType internal = ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType();
  internal.setAddress(convert(exposed.getAddress()));
  // TODO ref parameters not present in 2004/03
  // internal.setReferenceParameters(convert(exposed
  // .getReferenceParameters()));
  org.apache.cxf.ws.addressing.v200403.ServiceNameType serviceName = exposed.getServiceName();
  org.apache.cxf.ws.addressing.v200403.AttributedQName portName = exposed.getPortType();
  if (serviceName != null && portName != null) {
    EndpointReferenceUtils.setServiceAndPortName(internal, serviceName.getValue(), portName
      .getValue().getLocalPart());
  }
  // no direct analogue for ReferenceProperties
  addAll(internal.getAny(), exposed.getAny());
  putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
  return internal;
}    

origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Convert from 2004/03 EndpointReferenceType to 2005/08 EndpointReferenceType.
 * 
 * @param exposed the 2004/03 EndpointReferenceType
 * @return an equivalent 2005/08 EndpointReferenceType
 */
public static EndpointReferenceType 
convert(org.apache.cxf.ws.addressing.v200403.EndpointReferenceType exposed) {
  EndpointReferenceType internal = ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType();
  internal.setAddress(convert(exposed.getAddress()));
  // TODO ref parameters not present in 2004/03
  // internal.setReferenceParameters(convert(exposed
  // .getReferenceParameters()));
  org.apache.cxf.ws.addressing.v200403.ServiceNameType serviceName = exposed.getServiceName();
  org.apache.cxf.ws.addressing.v200403.AttributedQName portName = exposed.getPortType();
  if (serviceName != null && portName != null) {
    EndpointReferenceUtils.setServiceAndPortName(internal, serviceName.getValue(), portName
      .getValue().getLocalPart());
  }
  // no direct analogue for ReferenceProperties
  addAll(internal.getAny(), exposed.getAny());
  putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
  return internal;
}    

origin: org.apache.cxf/cxf-api

/**
 * Convert from 2004/08 EndpointReferenceType to 2005/08 
 * EndpointReferenceType.
 * 
 * @param exposed the 2004/08 EndpointReferenceType
 * @return an equivalent 2005/08 EndpointReferenceType
 */
public static EndpointReferenceType convert(
    org.apache.cxf.ws.addressing.v200408.EndpointReferenceType exposed) {
  EndpointReferenceType internal = 
    ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType();
  internal.setAddress(convert(exposed.getAddress()));
  internal.setReferenceParameters(
            convert(exposed.getReferenceParameters()));
  ServiceNameType serviceName = exposed.getServiceName();
  AttributedQName portName = exposed.getPortType();
  if (serviceName != null && portName != null) {
    EndpointReferenceUtils.setServiceAndPortName(internal, 
                       serviceName.getValue(),
                       portName.getValue().getLocalPart());
  }
  // no direct analogue for ReferenceProperties
  addAll(internal.getAny(), exposed.getAny());
  putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
  return internal; 
}
origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Convert from 2004/08 EndpointReferenceType to 2005/08 
 * EndpointReferenceType.
 * 
 * @param exposed the 2004/08 EndpointReferenceType
 * @return an equivalent 2005/08 EndpointReferenceType
 */
public static EndpointReferenceType convert(
    org.apache.cxf.ws.addressing.v200408.EndpointReferenceType exposed) {
  EndpointReferenceType internal = 
    ContextUtils.WSA_OBJECT_FACTORY.createEndpointReferenceType();
  internal.setAddress(convert(exposed.getAddress()));
  internal.setReferenceParameters(
            convert(exposed.getReferenceParameters()));
  ServiceNameType serviceName = exposed.getServiceName();
  AttributedQName portName = exposed.getPortType();
  if (serviceName != null && portName != null) {
    EndpointReferenceUtils.setServiceAndPortName(internal, 
                       serviceName.getValue(),
                       portName.getValue().getLocalPart());
  }
  // no direct analogue for ReferenceProperties
  addAll(internal.getAny(), exposed.getAny());
  putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
  return internal; 
}
org.apache.cxf.wsdlEndpointReferenceUtilssetServiceAndPortName

Javadoc

Sets the service and port name of the provided endpoint reference.

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
  • createContextForEPR
  • createSchema
  • duplicate
    Create a duplicate endpoint reference sharing all atributes
  • findNamespaceHack
  • getAddress
    Get the address from the provided endpoint reference.
  • getJAXBContextForEPR
  • getMatchingMultiplexDestination
  • getNameSpaceUri
  • getMatchingMultiplexDestination,
  • getNameSpaceUri,
  • getService,
  • getServiceNameType,
  • getWSDLDefinition,
  • getWSDLLocation,
  • mint,
  • portNameMatches,
  • setWSDLLocation

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • getSystemService (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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