public class ServletEndpointContextImpl extends Object implements ServletEndpointContext
ServletEndpointContext
Constructor and Description |
---|
ServletEndpointContextImpl(ServletRequestContext context) |
Modifier and Type | Method and Description |
---|---|
HttpServletRequest |
getHttpServletRequest() |
HttpServletResponse |
getHttpServletResponse() |
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".
|
public ServletEndpointContextImpl(ServletRequestContext context)
public HttpSession getHttpSession()
getHttpSession
in interface ServletEndpointContext
public MessageContext getMessageContext()
ServletEndpointContext
getMessageContext
in interface ServletEndpointContext
public ServletContext getServletContext()
ServletEndpointContext
getServletContext
in interface ServletEndpointContext
public Principal getUserPrincipal()
ServletEndpointContext
getUserPrincipal
in interface ServletEndpointContext
public boolean isUserInRole(String role)
ServletEndpointContext
isUserInRole
in interface ServletEndpointContext
role
- a String specifying the name of the rolepublic HttpServletRequest getHttpServletRequest()
public HttpServletResponse getHttpServletResponse()
Copyright © 2018 JBoss by Red Hat. All rights reserved.