|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.wsdl.EndpointReferenceUtils
public final class EndpointReferenceUtils
Provides utility methods for obtaining endpoint references, wsdl definitions, etc.
Field Summary | |
---|---|
static java.lang.String |
ANONYMOUS_ADDRESS
|
Method Summary | |
---|---|
static javax.xml.transform.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 java.lang.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(java.lang.String address)
Create an endpoint reference for the provided address. |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getEndpointReference(java.net.URL wsdlUrl,
javax.xml.namespace.QName serviceName,
java.lang.String portName)
Create an endpoint reference for the provided wsdl, service and portname. |
static java.lang.String |
getEndpointReferenceId(java.util.Map messageContext)
Obtain the id String from the endpoint reference of the current dispatch. |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getEndpointReferenceWithId(javax.xml.namespace.QName serviceQName,
java.lang.String portName,
java.lang.String id,
Bus bus)
Obtain a multiplexed endpoint reference for the deployed service that contains the provided id |
static javax.xml.namespace.QName |
getInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
Bus bus)
|
static javax.wsdl.Port |
getPort(WSDLManager manager,
org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Gets the WSDL port for the provided endpoint reference. |
static java.lang.String |
getPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Gets the port name of the provided endpoint reference. |
static javax.xml.namespace.QName |
getPortQName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
Bus bus)
|
static javax.xml.validation.Schema |
getSchema(ServiceInfo serviceInfo)
|
static javax.xml.namespace.QName |
getServiceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
Bus bus)
Gets the service name of the provided endpoint reference. |
static javax.xml.bind.JAXBElement<org.apache.cxf.ws.addressing.wsdl.ServiceNameType> |
getServiceNameType(javax.xml.namespace.QName serviceName,
java.lang.String portName)
|
static javax.wsdl.Definition |
getWSDLDefinition(WSDLManager manager,
org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Gets the WSDL definition for the provided endpoint reference. |
static java.lang.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(javax.xml.namespace.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,
java.lang.String address)
Set the address of the provided endpoint reference. |
static void |
setInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
javax.xml.namespace.QName portTypeName)
|
static void |
setMetadata(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
java.util.List<javax.xml.transform.Source> metadata)
Sets the metadata on the provided endpoint reference. |
static void |
setPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
java.lang.String portName)
|
static void |
setServiceAndPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
javax.xml.namespace.QName serviceName,
java.lang.String portName)
Sets the service and port name of the provided endpoint reference. |
static void |
setWSDLLocation(org.apache.cxf.ws.addressing.EndpointReferenceType ref,
java.lang.String... wsdlLocation)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ANONYMOUS_ADDRESS
Method Detail |
---|
public static void setServiceAndPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, javax.xml.namespace.QName serviceName, java.lang.String portName)
ref
- the endpoint reference.serviceName
- the name of service.portName
- the port name.public static javax.xml.bind.JAXBElement<org.apache.cxf.ws.addressing.wsdl.ServiceNameType> getServiceNameType(javax.xml.namespace.QName serviceName, java.lang.String portName)
public static javax.xml.namespace.QName getServiceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, Bus bus)
ref
- the endpoint reference.
public static java.lang.String getPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
ref
- the endpoint reference.
public static javax.xml.namespace.QName getPortQName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, Bus bus)
public static void setPortName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, java.lang.String portName)
public static void setInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, javax.xml.namespace.QName portTypeName)
public static javax.xml.namespace.QName getInterfaceName(org.apache.cxf.ws.addressing.EndpointReferenceType ref, Bus bus)
public static void setWSDLLocation(org.apache.cxf.ws.addressing.EndpointReferenceType ref, java.lang.String... wsdlLocation)
public static java.lang.String getWSDLLocation(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
public static void setMetadata(org.apache.cxf.ws.addressing.EndpointReferenceType ref, java.util.List<javax.xml.transform.Source> metadata) throws EndpointUtilsException
ref
- the endpoint reference.metadata
- the list of metadata source.
EndpointUtilsException
public static javax.wsdl.Definition getWSDLDefinition(WSDLManager manager, org.apache.cxf.ws.addressing.EndpointReferenceType ref) throws javax.wsdl.WSDLException
manager
- - the WSDL managerref
- - the endpoint reference
javax.wsdl.WSDLException
public static javax.xml.validation.Schema getSchema(ServiceInfo serviceInfo)
public static javax.wsdl.Port getPort(WSDLManager manager, org.apache.cxf.ws.addressing.EndpointReferenceType ref) throws javax.wsdl.WSDLException
manager
- - the WSDL managerref
- - the endpoint reference
javax.wsdl.WSDLException
public static java.lang.String getAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
ref
- - the endpoint reference
public static void setAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref, java.lang.String address)
ref
- - the endpoint referenceaddress
- - the addresspublic static org.apache.cxf.ws.addressing.EndpointReferenceType getEndpointReference(java.net.URL wsdlUrl, javax.xml.namespace.QName serviceName, java.lang.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 duplicate
public static org.apache.cxf.ws.addressing.EndpointReferenceType getEndpointReference(java.lang.String address)
address
- - address URI
public 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 resolve
public 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 renew
public static org.apache.cxf.ws.addressing.EndpointReferenceType mint(javax.xml.namespace.QName serviceName, Bus bus)
serviceName
- the given serviceName
public static org.apache.cxf.ws.addressing.EndpointReferenceType mint(org.apache.cxf.ws.addressing.EndpointReferenceType physical, Bus bus)
physical
- the concrete template EPR
public static org.apache.cxf.ws.addressing.EndpointReferenceType getEndpointReferenceWithId(javax.xml.namespace.QName serviceQName, java.lang.String portName, java.lang.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 bus
public static java.lang.String getEndpointReferenceId(java.util.Map messageContext)
messageContext
- the current message context
public static javax.xml.transform.Source convertToXML(org.apache.cxf.ws.addressing.EndpointReferenceType epr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |