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.
javax.annotation.Resource
| Modifier and Type | Method and Description |
|---|---|
| public EndpointReference | Returns: EndpointReference of the endpoint associated with thisWebServiceContext.
If the returned EndpointReference is of type
W3CEndpointReference then it MUST contain the
the specified referenceParameters.Reference parameters to be associated with the
returned referenceParameters)EndpointReference instance.Returns the |
| public < The type of T extends EndpointReference> TEndpointReference. | Returns: EndpointReference of typeclazz of the endpoint
associated with this WebServiceContext instance.
If the returned EndpointReference is of type
W3CEndpointReference then it MUST contain the
the specified referenceParameters.The type of clazz, Element... EndpointReference that
MUST be returned.Reference parameters to be associated with the
returned referenceParameters)EndpointReference instance.Returns the |
| public MessageContext | Returns: MessageContext The message context.Returns the |
| public Principal | Returns: Principal The principal object.Returns the Principal that identifies the sender of the request currently being serviced. |
| public boolean | Returns: aboolean indicating whether
the sender of the request belongs to a given roleA role)String specifying the name of the roleReturns a boolean indicating whether the authenticated user is included in the specified logical role. |
| getEndpointReference | back to summary |
|---|---|
| public EndpointReference getEndpointReference(Element... referenceParameters) Returns the
If the
| |
| getEndpointReference | back to summary |
|---|---|
| public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters) Returns the
| |
| getMessageContext | back to summary |
|---|---|
| public MessageContext getMessageContext() Returns the
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Returns the Principal that identifies the sender
of the request currently being serviced. If the
sender has not been authenticated, the method
returns
| |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) Returns a boolean indicating whether the
authenticated user is included in the specified
logical role. If the user has not been
authenticated, the method returns
| |