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(EndpointReferenceType epr) |
static EndpointReferenceType |
duplicate(EndpointReferenceType ref)
Create a duplicate endpoint reference sharing all atributes
|
static String |
getAddress(EndpointReferenceType ref)
Get the address from the provided endpoint reference.
|
static EndpointReferenceType |
getAnonymousEndpointReference()
Create an anonymous endpoint reference.
|
static EndpointReferenceType |
getEndpointReference(AttributedURIType address) |
static EndpointReferenceType |
getEndpointReference(String address)
Create an endpoint reference for the provided address.
|
static 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 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(EndpointReferenceType ref,
Bus bus) |
static String |
getPortName(EndpointReferenceType ref)
Gets the port name of the provided endpoint reference.
|
static QName |
getPortQName(EndpointReferenceType ref,
Bus bus) |
static Schema |
getSchema(ServiceInfo serviceInfo) |
static Schema |
getSchema(ServiceInfo serviceInfo,
Bus b) |
static QName |
getServiceName(EndpointReferenceType ref,
Bus bus)
Gets the service name of the provided endpoint reference.
|
static JAXBElement<ServiceNameType> |
getServiceNameType(QName serviceName,
String portName) |
static MetadataType |
getSetMetadata(EndpointReferenceType ref) |
static String |
getWSDLLocation(EndpointReferenceType ref) |
static EndpointReferenceType |
mint(EndpointReferenceType physical,
Bus bus)
Mint logical endpoint reference via the Bus EndpointResolverRegistry.
|
static EndpointReferenceType |
mint(QName serviceName,
Bus bus)
Mint logical endpoint reference via the Bus EndpointResolverRegistry.
|
static EndpointReferenceType |
renew(EndpointReferenceType logical,
EndpointReferenceType physical,
Bus bus)
Renew logical endpoint reference via the Bus EndpointResolverRegistry.
|
static EndpointReferenceType |
resolve(EndpointReferenceType logical,
Bus bus)
Resolve logical endpoint reference via the Bus EndpointResolverRegistry.
|
static void |
setAddress(EndpointReferenceType ref,
String address)
Set the address of the provided endpoint reference.
|
static void |
setInterfaceName(EndpointReferenceType ref,
QName portTypeName) |
static void |
setMetadata(EndpointReferenceType ref,
List<Source> metadata)
Sets the metadata on the provided endpoint reference.
|
static void |
setPortName(EndpointReferenceType ref,
String portName) |
static void |
setServiceAndPortName(EndpointReferenceType ref,
QName serviceName,
String portName)
Sets the service and port name of the provided endpoint reference.
|
static void |
setWSDLLocation(EndpointReferenceType ref,
String... wsdlLocation) |
public static final String ANONYMOUS_ADDRESS
public static void setServiceAndPortName(EndpointReferenceType ref, QName serviceName, String portName)
ref
- the endpoint reference.serviceName
- the name of service.portName
- the port name.public static MetadataType getSetMetadata(EndpointReferenceType ref)
public static JAXBElement<ServiceNameType> getServiceNameType(QName serviceName, String portName)
public static QName getServiceName(EndpointReferenceType ref, Bus bus)
ref
- the endpoint reference.public static String getPortName(EndpointReferenceType ref)
ref
- the endpoint reference.public static QName getPortQName(EndpointReferenceType ref, Bus bus)
public static void setPortName(EndpointReferenceType ref, String portName)
public static void setInterfaceName(EndpointReferenceType ref, QName portTypeName)
public static QName getInterfaceName(EndpointReferenceType ref, Bus bus)
public static void setWSDLLocation(EndpointReferenceType ref, String... wsdlLocation)
public static String getWSDLLocation(EndpointReferenceType ref)
public static void setMetadata(EndpointReferenceType ref, List<Source> metadata) throws EndpointUtilsException
ref
- the endpoint reference.metadata
- the list of metadata source.EndpointUtilsException
public static Schema getSchema(ServiceInfo serviceInfo)
public static Schema getSchema(ServiceInfo serviceInfo, Bus b)
public static String getAddress(EndpointReferenceType ref)
ref
- - the endpoint referencepublic static void setAddress(EndpointReferenceType ref, String address)
ref
- - the endpoint referenceaddress
- - the addresspublic static 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 EndpointReferenceType duplicate(EndpointReferenceType ref)
ref
- the reference to duplicatepublic static EndpointReferenceType getEndpointReference(String address)
address
- - address URIpublic static EndpointReferenceType getEndpointReference(AttributedURIType address)
public static EndpointReferenceType getAnonymousEndpointReference()
public static EndpointReferenceType resolve(EndpointReferenceType logical, Bus bus)
logical
- the abstract EPR to resolvepublic static EndpointReferenceType renew(EndpointReferenceType logical, EndpointReferenceType physical, Bus bus)
logical
- the original abstract EPR (if still available)physical
- the concrete EPR to renewpublic static EndpointReferenceType mint(QName serviceName, Bus bus)
serviceName
- the given serviceNamepublic static EndpointReferenceType mint(EndpointReferenceType physical, Bus bus)
physical
- the concrete template EPRpublic static 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(EndpointReferenceType epr)
Copyright © 2019 JBoss by Red Hat. All rights reserved.