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

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

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

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

public EndpointReferenceType getAddressWithId(String id) {
  EndpointReferenceType ref = null;
  if (isMultiplexWithAddress()) {
    String address = EndpointReferenceUtils.getAddress(reference);
    ref = EndpointReferenceUtils.duplicate(reference);
    if (address.endsWith("/")) {
      EndpointReferenceUtils.setAddress(ref, address + id);
    } else {
      EndpointReferenceUtils.setAddress(ref, address + "/" + id);
    }
  } else {
    ref = super.getAddressWithId(id);
  }
  return ref;
}
origin: org.apache.cxf/cxf-bundle-jaxrs

/**
 * Builds an new endpoint reference using the current target reference as a template. 
 * The supplied id is endcoded using a reference parameter.
 * This requires the ws-a interceptors to propagate the reference parameters
 * on subsequent invokes using the returned reference.
 * @param id the id to encode in the new reference
 * @return the new reference with the id encoded as a reference parameter
 * @see org.apache.cxf.transport.MultiplexDestination#getAddressWithId(java.lang.String)
 
 */
public EndpointReferenceType getAddressWithId(String id) {
  EndpointReferenceType epr = EndpointReferenceUtils.duplicate(
    EndpointReferenceUtils.mint(reference, bus));
  ReferenceParametersType newParams = new org.apache.cxf.ws.addressing.ObjectFactory()
    .createReferenceParametersType();
  
  ReferenceParametersType existingParams = epr.getReferenceParameters();
  if (null != existingParams) {
    newParams.getAny().addAll(existingParams.getAny());
  }
  
  newParams.getAny().add(new JAXBElement<String>(MULTIPLEX_ID_QNAME, String.class, id));
  epr.setReferenceParameters(newParams);
  return epr;
}
origin: org.apache.cxf/cxf-api

/**
 * Builds an new endpoint reference using the current target reference as a template. 
 * The supplied id is endcoded using a reference parameter.
 * This requires the ws-a interceptors to propagate the reference parameters
 * on subsequent invokes using the returned reference.
 * @param id the id to encode in the new reference
 * @return the new reference with the id encoded as a reference parameter
 * @see org.apache.cxf.transport.MultiplexDestination#getAddressWithId(java.lang.String)
 
 */
public EndpointReferenceType getAddressWithId(String id) {
  EndpointReferenceType epr = EndpointReferenceUtils.duplicate(
    EndpointReferenceUtils.mint(reference, bus));
  ReferenceParametersType newParams = new org.apache.cxf.ws.addressing.ObjectFactory()
    .createReferenceParametersType();
  
  ReferenceParametersType existingParams = epr.getReferenceParameters();
  if (null != existingParams) {
    newParams.getAny().addAll(existingParams.getAny());
  }
  
  newParams.getAny().add(new JAXBElement<String>(MULTIPLEX_ID_QNAME, String.class, id));
  epr.setReferenceParameters(newParams);
  return epr;
}
org.apache.cxf.wsdlEndpointReferenceUtilsduplicate

Javadoc

Create a duplicate endpoint reference sharing all atributes

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
  • 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

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Github Copilot alternatives
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