Package com.sun.xml.wss.util
Class ServletContextUtil
java.lang.Object
com.sun.xml.wss.util.ServletContextUtil
As the ServletContext is not a mandatory dependency, we have to expect it is not present.
To avoid direct dependency on the ServletContext class we created this class.
If the ServletContext class is not available or given object is not it's instance,
static methods return null.
- Author:
- David Matejcek
-
Method Summary
Modifier and TypeMethodDescriptionstatic WSSServletContextFacadegetServletContextFacade(com.sun.xml.ws.api.server.WSEndpoint<?> endpoint) static WSSServletContextFacadeWraps the context or returns null if it is not possible.
-
Method Details
-
wrap
Wraps the context or returns null if it is not possible.- Returns:
WSSServletContextFacadeor null
-
getServletContextFacade
public static WSSServletContextFacade getServletContextFacade(com.sun.xml.ws.api.server.WSEndpoint<?> endpoint) - Returns:
- null or the
WSSServletContextFacadewrapping a Servletcontext instance bound to this endpoint
-