Interface WebServiceContext

public interface WebServiceContext

A WebServiceContext makes it possible for
a web service endpoint implementation class to access
message context and security information relative to
a request being served.
Typically a WebServiceContext is injected
into an endpoint implementation class using the
Resource annotation.

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.

Throws:

IllegalStateException - This exception is thrown
if the method is called while no request is
being serviced.