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

Returns the EndpointReference associated with this endpoint.

Parameters:
clazz    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 the endpoint associated with this WebServiceContext instance. If the returned EndpointReference is of type W3CEndpointReference then it MUST contain the the specified referenceParameters.

Exceptions:
IllegalStateException    This exception is thrown if the method is called while no request is being serviced.
WebServiceException    If the clazz type of EndpointReference is not supported.

Since:  JAX-WS 2.1