Package org.apache.axis.transport.http
Class ServletEndpointContextImpl
- java.lang.Object
-
- org.apache.axis.transport.http.ServletEndpointContextImpl
-
- All Implemented Interfaces:
ServletEndpointContext
public class ServletEndpointContextImpl extends java.lang.Object implements ServletEndpointContext
-
-
Constructor Summary
Constructors Constructor Description ServletEndpointContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpSessiongetHttpSession()ThegetHttpSessionmethod returns the current HTTP session (as ajavax.servlet.http.HTTPSession).MessageContextgetMessageContext()The methodgetMessageContextreturns theMessageContexttargeted for this endpoint instance.javax.servlet.ServletContextgetServletContext()The methodgetServletContextreturns theServletContext associated with the web application that contain this endpoint.java.security.PrincipalgetUserPrincipal()Returns ajava.security.Principalinstance that contains the name of the authenticated user for the current method invocation on the endpoint instance.booleanisUserInRole(java.lang.String role)
-
-
-
Method Detail
-
getHttpSession
public javax.servlet.http.HttpSession getHttpSession()
Description copied from interface:ServletEndpointContextThegetHttpSessionmethod returns the current HTTP session (as ajavax.servlet.http.HTTPSession). When invoked by the service endpoint within a remote method implementation, thegetHttpSessionreturns the HTTP session associated currently with this method invocation. This method returnsnullif there is no HTTP session currently active and associated with this service endpoint. An endpoint class should not rely on an active HTTP session being always there; the underlying JAX-RPC runtime system is responsible for managing whether or not there is an active HTTP session.The getHttpSession method throws
JAXRPCExceptionif invoked by an non HTTP bound endpoint.- Specified by:
getHttpSessionin interfaceServletEndpointContext- Returns:
- The HTTP session associated with the current
invocation or
nullif there is no active session.
-
getMessageContext
public MessageContext getMessageContext()
Description copied from interface:ServletEndpointContextThe methodgetMessageContextreturns theMessageContexttargeted for this endpoint instance. This enables the service endpoint instance to acccess theMessageContextpropagated by requestHandlerChain(and its containedHandlerinstances) to the target endpoint instance and to share any SOAP message processing related context. The endpoint instance can access and manipulate theMessageContextand share the SOAP message processing related context with the responseHandlerChain.- Specified by:
getMessageContextin interfaceServletEndpointContext- Returns:
- MessageContext; If there is no associated
MessageContext, this method returnsnull.
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Description copied from interface:ServletEndpointContextThe methodgetServletContextreturns theServletContext associated with the web application that contain this endpoint. According to the Servlet specification, There is one context per web application (installed as a WAR) per JVM . A servlet based service endpoint is deployed as part of a web application.- Specified by:
getServletContextin interfaceServletEndpointContext- Returns:
- the current
ServletContext
-
isUserInRole
public boolean isUserInRole(java.lang.String role)
- Specified by:
isUserInRolein interfaceServletEndpointContext
-
getUserPrincipal
public java.security.Principal getUserPrincipal()
Description copied from interface:ServletEndpointContextReturns ajava.security.Principalinstance that contains the name of the authenticated user for the current method invocation on the endpoint instance. This method returnsnullif 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 instance.- Specified by:
getUserPrincipalin interfaceServletEndpointContext- Returns:
- A
java.security.Principalfor the authenticated principal associated with the current invocation on the servlet endpoint instance; Returnsnullif there no authenticated user associated with a method invocation.
-
-