|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ServletEndpointContext provides an endpoint context maintained by the
underlying servlet container based JAX-RPC runtime system. For service
endpoints deployed on a servlet container based JAX-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 JAX-RPC runtime system implements the
ServletEndpointContext
interface. The JAX-RPC runtime system is
required to provide appropriate session, message context, servlet context and
user principal information per method invocation on the endpoint class.
Method Summary | |
javax.servlet.http.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 object. |
javax.servlet.ServletContext |
getServletContext()
The method getServletContext returns the ServletContext associated with the web application that contain this endpoint. |
java.security.Principal |
getUserPrincipal()
Returns a java.security.Principal instance that contains the
name of the authenticated user for the current method invocation on the
endpoint object. |
Method Detail |
public MessageContext getMessageContext()
java.lang.IllegalStateException
- - if this method is invoked
outside a remote method implementation by an endpoint object.public java.security.Principal getUserPrincipal()
java.security.Principal
instance that contains the
name of the authenticated user for the current method invocation on the
endpoint object. This method returns null if there is no associated
principal yet. The underlying JAX-RPC runtime system takes the
responsibility of providing the appropriate authenticated principal for a
remote method invocation on the service endpoint object.public javax.servlet.http.HttpSession getHttpSession()
JAXRPCException
- - If this method invoked by a non-HTTP bound
endpoints.public javax.servlet.ServletContext getServletContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |