public abstract <T extends EndpointReference> T getEndpointReference (Class<T> clazz, Element… referenceParameters)

Returns the EndpointReference associated with this Endpoint instance.

Parameters:
clazz    Specifies the type of EndpointReference that MUST be returned.
referenceParameters    Reference parameters to be associated with the returned EndpointReference instance.

Returns:  EndpointReference of type clazz of this Endpoint instance. If the returned EndpointReference is of type W3CEndpointReference then it MUST contain the the specified referenceParameters.

Exceptions:
WebServiceException    If any error in the creation of the EndpointReference or if the Endpoint is not in the published state or if the clazz is not a supported EndpointReference type.
UnsupportedOperationException    If this BindingProvider uses the XML/HTTP binding.

Since:  JAX-WS 2.1