ServletEndpointContext provides an endpoint
context maintained by the underlying servlet container based
Jakarta XML RPC runtime system. For service endpoints deployed on a
servlet container based Jakarta XML RPC runtime system, the context
parameter in the ServiceLifecycle.init method is
required to be of the Java type
javax.xml.rpc.server.ServletEndpointContext.
A servlet container based Jakarta XML RPC runtime system implements
the ServletEndpointContext interface. The Jakarta XML RPC
runtime system is required to provide appropriate session,
message context, servlet context and user principal information
per method invocation on the endpoint class.
| Modifier and Type | Method and Description |
|---|---|
| public HttpSession | Returns: The HTTP session associated with the current invocation ornull if there is
no active session.The |
| public MessageContext | Returns: MessageContext; If there is no associatedMessageContext, this method returns
null.The method |
| public ServletContext | Returns: ServletContextThe method |
| public Principal | Returns: Ajava.security.Principal for the
authenticated principal associated with the current
invocation on the servlet endpoint instance;
Returns null if there no authenticated
user associated with a method invocation.Returns a |
| public boolean | Returns: aboolean indicating whether the
authenticated user associated with the current
method invocation belongs to a given role;
false if the user has not been authenticateda role)String specifying the name
of the roleReturns a boolean indicating whether the authenticated user for the current method invocation on the endpoint instance is included in the specified logical "role". |
| getHttpSession | back to summary |
|---|---|
| public HttpSession getHttpSession() The The getHttpSession method throws
| |
| getMessageContext | back to summary |
|---|---|
| public MessageContext getMessageContext() The method
| |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() The method
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Returns a
| |
| isUserInRole | back to summary |
|---|---|
| public 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".
| |