T
- all endpoint builders are parameterized to specific endpoint type which on the used framework (not on the
service)public interface EndpointReferenceBuilder<T>
javax.xml.ws.WebServiceContext org.apache.cxf.jaxws.EndpointReferenceBuilder doesn't expose the API for adding additional metadata while org.apache.cxf.jaxws.EndpointImpl doesn't take the correct endpoint address from the EndpointInfo object. org.apache.cxf.endpoint.Endpoint return a CXF proprietary endpoint reference and not the javax/w3c standard definition.
This interface is intended to provide an abstract way to construct an endpoint reference for a given service, depending on the type of endpoint interface you have at hand (CXF abstract endpoint or jaxws endpoint)
Normally the type parameter T will be bound to your endpoint type.
In CXF jaxws applications you can easly get a WebServiceContext instance which returns an EndpointReference, however the API is cumbersome because it requires instantiating w3c DOM Element instances for each reference parameter, and it doesn't allow setting custom metadata elements.
Implementors of this API will extract as many useful informations from the runtime besides the plain soap endpoint address.
Modifier and Type | Method and Description |
---|---|
String |
getAddress(T endpoint)
Sometimes we need only the address.
|
W3CEndpointReference |
getEndpointReference(T endpoint)
get an endpoint reference with default metadata attached.
|
W3CEndpointReference |
getEndpointReference(T endpoint,
Map<QName,Object> attrs)
get an endpoint reference with custom metadata attached.
|
W3CEndpointReference |
getEndpointReference(T endpoint,
String referenceParam)
get an endpoint reference with a WSA reference parameter.
|
W3CEndpointReference |
getEndpointReference(T endpoint,
String referenceParam,
Map<QName,Object> attrs)
get an endpoint reference with custom metadata attached and WSA reference parameter.
|
W3CEndpointReference getEndpointReference(T endpoint)
endpoint
- the endpointW3CEndpointReference getEndpointReference(T endpoint, Map<QName,Object> attrs)
endpoint
- the endpointattrs
- metadata attribute mapW3CEndpointReference getEndpointReference(T endpoint, String referenceParam)
endpoint
- the endpointreferenceParam
- reference parametersW3CEndpointReference getEndpointReference(T endpoint, String referenceParam, Map<QName,Object> attrs)
endpoint
- endpointreferenceParam
- reference parametersattrs
- metadata attribute mapCopyright © 2017. All rights reserved.