public interface ServletEndpointContext
Modifier and Type | Method and Description |
---|---|
HttpSession |
getHttpSession()
The getHttpSession method returns the current HTTP session (as a javax.servlet.http.HTTPSession).
|
MessageContext |
getMessageContext()
The method getMessageContext returns the MessageContext targeted for this endpoint instance.
|
ServletContext |
getServletContext()
The method getServletContext returns the ServletContext associated with the web application that contain this endpoint.
|
Principal |
getUserPrincipal()
Returns a java.security.Principal instance that contains the name of the authenticated user for the current method
invocation on the endpoint instance.
|
boolean |
isUserInRole(String role)
Returns a boolean indicating whether the authenticated user for the current method invocation on the endpoint
instance is included in the specified logical "role".
|
HttpSession getHttpSession()
MessageContext getMessageContext()
ServletContext getServletContext()
Principal getUserPrincipal()
boolean isUserInRole(String role)
role
- a String specifying the name of the roleCopyright © 2019 JBoss by Red Hat. All rights reserved.