public class EjbWsContext extends java.lang.Object implements WebServiceContext
Constructor and Description |
---|
EjbWsContext(SessionContext context) |
Modifier and Type | Method and Description |
---|---|
<T extends EndpointReference> |
getEndpointReference(java.lang.Class<T> clazz,
org.w3c.dom.Element... referenceParameters)
Returns the
EndpointReference associated with
this endpoint. |
EndpointReference |
getEndpointReference(org.w3c.dom.Element... referenceParameters)
Returns the
EndpointReference for this
endpoint. |
MessageContext |
getMessageContext()
Returns the
MessageContext for the request being served
at the time this method is called. |
java.security.Principal |
getUserPrincipal()
Returns the Principal that identifies the sender
of the request currently being serviced.
|
boolean |
isUserInRole(java.lang.String roleName)
Returns a boolean indicating whether the
authenticated user is included in the specified
logical role.
|
public EjbWsContext(SessionContext context)
public MessageContext getMessageContext()
WebServiceContext
MessageContext
for the request being served
at the time this method is called. Only properties with
APPLICATION scope will be visible to the application.getMessageContext
in interface WebServiceContext
MessageContext
,
MessageContext.Scope
,
IllegalStateException
public java.security.Principal getUserPrincipal()
WebServiceContext
null
.getUserPrincipal
in interface WebServiceContext
Principal
,
IllegalStateException
public boolean isUserInRole(java.lang.String roleName)
WebServiceContext
false
.isUserInRole
in interface WebServiceContext
roleName
- A String
specifying the name of the roleboolean
indicating whether
the sender of the request belongs to a given rolepublic EndpointReference getEndpointReference(org.w3c.dom.Element... referenceParameters)
WebServiceContext
EndpointReference
for this
endpoint.
If the Binding
for this bindingProvider
is
either SOAP1.1/HTTP or SOAP1.2/HTTP, then a
W3CEndpointReference
MUST be returned.
getEndpointReference
in interface WebServiceContext
referenceParameters
- Reference parameters to be associated with the
returned EndpointReference
instance.WebServiceContext
.
If the returned EndpointReference
is of type
W3CEndpointReference
then it MUST contain the
the specified referenceParameters
.W3CEndpointReference
public <T extends EndpointReference> T getEndpointReference(java.lang.Class<T> clazz, org.w3c.dom.Element... referenceParameters)
WebServiceContext
EndpointReference
associated with
this endpoint.getEndpointReference
in interface WebServiceContext
T
- The type of EndpointReference
.clazz
- The type of EndpointReference
that
MUST be returned.referenceParameters
- Reference parameters to be associated with the
returned EndpointReference
instance.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
.