public final class EndpointReferenceUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANONYMOUS_ADDRESS |
| Modifier and Type | Method and Description |
|---|---|
static Source |
convertToXML(org.apache.cxf.ws.addressing.EndpointReferenceType epr) |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
duplicate(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Create a duplicate endpoint reference sharing all atributes
|
static String |
getAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Get the address from the provided endpoint reference.
|
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getAnonymousEndpointReference()
Create an anonymous endpoint reference.
|
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getEndpointReference(org.apache.cxf.ws.addressing.AttributedURIType address) |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getEndpointReference(String address)
Create an endpoint reference for the provided address.
|
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getEndpointReference(URL wsdlUrl,
QName serviceName,
String portName)
Create an endpoint reference for the provided wsdl, service and portname.
|
static String |
getEndpointReferenceId(Map<String,Object> messageContext)
Obtain the id String from the endpoint reference of the current dispatch.
|
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getEndpointReferenceWithId(QName serviceQName,
String portName,
String id,
Bus bus)
Obtain a multiplexed endpoint reference for the deployed service that contains the provided id
|
static QName |
getInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
Bus bus) |
static String |
getPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Gets the port name of the provided endpoint reference.
|
static QName |
getPortQName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
Bus bus) |
static Schema |
getSchema(ServiceInfo serviceInfo) |
static Schema |
getSchema(ServiceInfo serviceInfo,
Bus b) |
static QName |
getServiceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
Bus bus)
Gets the service name of the provided endpoint reference.
|
static JAXBElement<org.apache.cxf.ws.addressing.wsdl.ServiceNameType> |
getServiceNameType(QName serviceName,
String portName) |
static org.apache.cxf.ws.addressing.MetadataType |
getSetMetadata(org.apache.cxf.ws.addressing.EndpointReferenceType ref) |
static String |
getWSDLLocation(org.apache.cxf.ws.addressing.EndpointReferenceType ref) |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
mint(org.apache.cxf.ws.addressing.EndpointReferenceType physical,
Bus bus)
Mint logical endpoint reference via the Bus EndpointResolverRegistry.
|
static org.apache.cxf.ws.addressing.EndpointReferenceType |
mint(QName serviceName,
Bus bus)
Mint logical endpoint reference via the Bus EndpointResolverRegistry.
|
static org.apache.cxf.ws.addressing.EndpointReferenceType |
renew(org.apache.cxf.ws.addressing.EndpointReferenceType logical,
org.apache.cxf.ws.addressing.EndpointReferenceType physical,
Bus bus)
Renew logical endpoint reference via the Bus EndpointResolverRegistry.
|
static org.apache.cxf.ws.addressing.EndpointReferenceType |
resolve(org.apache.cxf.ws.addressing.EndpointReferenceType logical,
Bus bus)
Resolve logical endpoint reference via the Bus EndpointResolverRegistry.
|
static void |
setAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
String address)
Set the address of the provided endpoint reference.
|
static void |
setInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
QName portTypeName) |
static void |
setPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
String portName) |
static void |
setServiceAndPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
QName serviceName,
String portName)
Sets the service and port name of the provided endpoint reference.
|
static void |
setWSDLLocation(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
String... wsdlLocation) |
public static final String ANONYMOUS_ADDRESS
public static void setServiceAndPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
QName serviceName,
String portName)
ref - the endpoint reference.serviceName - the name of service.portName - the port name.public static org.apache.cxf.ws.addressing.MetadataType getSetMetadata(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
public static JAXBElement<org.apache.cxf.ws.addressing.wsdl.ServiceNameType> getServiceNameType(QName serviceName, String portName)
public static QName getServiceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, Bus bus)
ref - the endpoint reference.public static String getPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
ref - the endpoint reference.public static QName getPortQName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, Bus bus)
public static void setPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
String portName)
public static void setInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
QName portTypeName)
public static QName getInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, Bus bus)
public static void setWSDLLocation(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
String... wsdlLocation)
public static String getWSDLLocation(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
public static Schema getSchema(ServiceInfo serviceInfo)
public static Schema getSchema(ServiceInfo serviceInfo, Bus b)
public static String getAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
ref - - the endpoint referencepublic static void setAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
String address)
ref - - the endpoint referenceaddress - - the addresspublic static org.apache.cxf.ws.addressing.EndpointReferenceType getEndpointReference(URL wsdlUrl, QName serviceName, String portName)
wsdlUrl - - url of the wsdl that describes the service.serviceName - - the QName of the service.portName - - the name of the port.public static org.apache.cxf.ws.addressing.EndpointReferenceType duplicate(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
ref - the reference to duplicatepublic static org.apache.cxf.ws.addressing.EndpointReferenceType getEndpointReference(String address)
address - - address URIpublic static org.apache.cxf.ws.addressing.EndpointReferenceType getEndpointReference(org.apache.cxf.ws.addressing.AttributedURIType address)
public static org.apache.cxf.ws.addressing.EndpointReferenceType getAnonymousEndpointReference()
public static org.apache.cxf.ws.addressing.EndpointReferenceType resolve(org.apache.cxf.ws.addressing.EndpointReferenceType logical,
Bus bus)
logical - the abstract EPR to resolvepublic static org.apache.cxf.ws.addressing.EndpointReferenceType renew(org.apache.cxf.ws.addressing.EndpointReferenceType logical,
org.apache.cxf.ws.addressing.EndpointReferenceType physical,
Bus bus)
logical - the original abstract EPR (if still available)physical - the concrete EPR to renewpublic static org.apache.cxf.ws.addressing.EndpointReferenceType mint(QName serviceName, Bus bus)
serviceName - the given serviceNamepublic static org.apache.cxf.ws.addressing.EndpointReferenceType mint(org.apache.cxf.ws.addressing.EndpointReferenceType physical,
Bus bus)
physical - the concrete template EPRpublic static org.apache.cxf.ws.addressing.EndpointReferenceType getEndpointReferenceWithId(QName serviceQName, String portName, String id, Bus bus)
serviceQName - identified the target serviceportName - identifies a particular port of the service, may be nullid - that must be embedded in the returned referencebus - the current buspublic static String getEndpointReferenceId(Map<String,Object> messageContext)
messageContext - the current message contextpublic static Source convertToXML(org.apache.cxf.ws.addressing.EndpointReferenceType epr)
Apache CXF