Class ServletContextAdaptor
java.lang.Object
org.adempiere.eclipse.equinox.http.servlet.ServletContextAdaptor
- All Implemented Interfaces:
javax.servlet.ServletContext
-
Field Summary
Fields inherited from interface javax.servlet.ServletContext
ORDERED_LIBS, TEMPDIR
-
Constructor Summary
ConstructorDescriptionServletContextAdaptor
(ProxyContext proxyContext, javax.servlet.ServletContext servletContext, org.osgi.service.http.HttpContext httpContext) -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.FilterRegistration.Dynamic
javax.servlet.FilterRegistration.Dynamic
javax.servlet.FilterRegistration.Dynamic
javax.servlet.ServletRegistration.Dynamic
addJspFile
(String servletName, String jspFile) void
addListener
(Class<? extends EventListener> arg0) void
addListener
(String arg0) void
addListener
(EventListener arg0) javax.servlet.ServletRegistration.Dynamic
addServlet
(String arg0, Class<? extends javax.servlet.Servlet> arg1) javax.servlet.ServletRegistration.Dynamic
addServlet
(String arg0, String arg1) javax.servlet.ServletRegistration.Dynamic
addServlet
(String arg0, javax.servlet.Servlet arg1) <T extends javax.servlet.Filter>
TcreateFilter
(Class<T> arg0) <T extends EventListener>
TcreateListener
(Class<T> arg0) <T extends javax.servlet.Servlet>
TcreateServlet
(Class<T> arg0) void
declareRoles
(String... arg0) getAttribute
(String attributeName) javax.servlet.ServletContext
getContext
(String arg0) Set<javax.servlet.SessionTrackingMode>
int
int
Set<javax.servlet.SessionTrackingMode>
javax.servlet.FilterRegistration
getFilterRegistration
(String arg0) getInitParameter
(String arg0) javax.servlet.descriptor.JspConfigDescriptor
int
getMimeType
(String name) int
javax.servlet.RequestDispatcher
getNamedDispatcher
(String arg0) getRealPath
(String arg0) javax.servlet.RequestDispatcher
getRequestDispatcher
(String arg0) getResource
(String name) getResourceAsStream
(String name) getResourcePaths
(String name) javax.servlet.Servlet
getServlet
(String arg0) Deprecated.Deprecated.javax.servlet.ServletRegistration
getServletRegistration
(String arg0) Enumeration<javax.servlet.Servlet>
Deprecated.javax.servlet.SessionCookieConfig
int
void
Deprecated.void
void
void
removeAttribute
(String attributeName) void
setAttribute
(String attributeName, Object attributeValue) boolean
setInitParameter
(String arg0, String arg1) void
setRequestCharacterEncoding
(String encoding) void
setResponseCharacterEncoding
(String encoding) void
setSessionTimeout
(int sessionTimeout) void
setSessionTrackingModes
(Set<javax.servlet.SessionTrackingMode> arg0)
-
Constructor Details
-
ServletContextAdaptor
public ServletContextAdaptor(ProxyContext proxyContext, javax.servlet.ServletContext servletContext, org.osgi.service.http.HttpContext httpContext)
-
-
Method Details
-
getResourcePaths
- Specified by:
getResourcePaths
in interfacejavax.servlet.ServletContext
- See Also:
-
This method was added in the Servlet 2.3 API however the OSGi HttpService currently does not provide support for this method in the HttpContext interface. To support "getResourcePaths(...) this implementation uses reflection to check for and then call the associated HttpContext.getResourcePaths(...) method opportunistically. Null is returned if the method is not present or fails.
-
getAttribute
- Specified by:
getAttribute
in interfacejavax.servlet.ServletContext
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.servlet.ServletContext
-
setAttribute
- Specified by:
setAttribute
in interfacejavax.servlet.ServletContext
-
removeAttribute
- Specified by:
removeAttribute
in interfacejavax.servlet.ServletContext
-
getMimeType
- Specified by:
getMimeType
in interfacejavax.servlet.ServletContext
-
getResource
- Specified by:
getResource
in interfacejavax.servlet.ServletContext
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfacejavax.servlet.ServletContext
-
getContext
- Specified by:
getContext
in interfacejavax.servlet.ServletContext
-
getInitParameter
- Specified by:
getInitParameter
in interfacejavax.servlet.ServletContext
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacejavax.servlet.ServletContext
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfacejavax.servlet.ServletContext
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfacejavax.servlet.ServletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcher
in interfacejavax.servlet.ServletContext
-
getRealPath
- Specified by:
getRealPath
in interfacejavax.servlet.ServletContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletContext
-
getServerInfo
- Specified by:
getServerInfo
in interfacejavax.servlet.ServletContext
-
getServlet
Deprecated.- Specified by:
getServlet
in interfacejavax.servlet.ServletContext
- Throws:
javax.servlet.ServletException
-
getServletContextName
- Specified by:
getServletContextName
in interfacejavax.servlet.ServletContext
-
getServletNames
Deprecated.- Specified by:
getServletNames
in interfacejavax.servlet.ServletContext
-
getServlets
Deprecated.- Specified by:
getServlets
in interfacejavax.servlet.ServletContext
-
log
Deprecated.- Specified by:
log
in interfacejavax.servlet.ServletContext
-
log
- Specified by:
log
in interfacejavax.servlet.ServletContext
-
log
- Specified by:
log
in interfacejavax.servlet.ServletContext
-
getContextPath
- Specified by:
getContextPath
in interfacejavax.servlet.ServletContext
-
addFilter
- Specified by:
addFilter
in interfacejavax.servlet.ServletContext
-
addFilter
- Specified by:
addFilter
in interfacejavax.servlet.ServletContext
-
addFilter
public javax.servlet.FilterRegistration.Dynamic addFilter(String arg0, Class<? extends javax.servlet.Filter> arg1) - Specified by:
addFilter
in interfacejavax.servlet.ServletContext
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
-
addServlet
- Specified by:
addServlet
in interfacejavax.servlet.ServletContext
-
addServlet
public javax.servlet.ServletRegistration.Dynamic addServlet(String arg0, javax.servlet.Servlet arg1) - Specified by:
addServlet
in interfacejavax.servlet.ServletContext
-
addServlet
public javax.servlet.ServletRegistration.Dynamic addServlet(String arg0, Class<? extends javax.servlet.Servlet> arg1) - Specified by:
addServlet
in interfacejavax.servlet.ServletContext
-
createFilter
public <T extends javax.servlet.Filter> T createFilter(Class<T> arg0) throws javax.servlet.ServletException - Specified by:
createFilter
in interfacejavax.servlet.ServletContext
- Throws:
javax.servlet.ServletException
-
createListener
public <T extends EventListener> T createListener(Class<T> arg0) throws javax.servlet.ServletException - Specified by:
createListener
in interfacejavax.servlet.ServletContext
- Throws:
javax.servlet.ServletException
-
createServlet
public <T extends javax.servlet.Servlet> T createServlet(Class<T> arg0) throws javax.servlet.ServletException - Specified by:
createServlet
in interfacejavax.servlet.ServletContext
- Throws:
javax.servlet.ServletException
-
declareRoles
- Specified by:
declareRoles
in interfacejavax.servlet.ServletContext
-
getClassLoader
- Specified by:
getClassLoader
in interfacejavax.servlet.ServletContext
-
getDefaultSessionTrackingModes
- Specified by:
getDefaultSessionTrackingModes
in interfacejavax.servlet.ServletContext
-
getEffectiveMajorVersion
public int getEffectiveMajorVersion()- Specified by:
getEffectiveMajorVersion
in interfacejavax.servlet.ServletContext
-
getEffectiveMinorVersion
public int getEffectiveMinorVersion()- Specified by:
getEffectiveMinorVersion
in interfacejavax.servlet.ServletContext
-
getEffectiveSessionTrackingModes
- Specified by:
getEffectiveSessionTrackingModes
in interfacejavax.servlet.ServletContext
-
getFilterRegistration
- Specified by:
getFilterRegistration
in interfacejavax.servlet.ServletContext
-
getFilterRegistrations
- Specified by:
getFilterRegistrations
in interfacejavax.servlet.ServletContext
-
getJspConfigDescriptor
public javax.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor()- Specified by:
getJspConfigDescriptor
in interfacejavax.servlet.ServletContext
-
getServletRegistration
- Specified by:
getServletRegistration
in interfacejavax.servlet.ServletContext
-
getServletRegistrations
- Specified by:
getServletRegistrations
in interfacejavax.servlet.ServletContext
-
getSessionCookieConfig
public javax.servlet.SessionCookieConfig getSessionCookieConfig()- Specified by:
getSessionCookieConfig
in interfacejavax.servlet.ServletContext
-
setInitParameter
- Specified by:
setInitParameter
in interfacejavax.servlet.ServletContext
-
setSessionTrackingModes
- Specified by:
setSessionTrackingModes
in interfacejavax.servlet.ServletContext
-
getVirtualServerName
- Specified by:
getVirtualServerName
in interfacejavax.servlet.ServletContext
-
addJspFile
- Specified by:
addJspFile
in interfacejavax.servlet.ServletContext
-
getSessionTimeout
public int getSessionTimeout()- Specified by:
getSessionTimeout
in interfacejavax.servlet.ServletContext
-
setSessionTimeout
public void setSessionTimeout(int sessionTimeout) - Specified by:
setSessionTimeout
in interfacejavax.servlet.ServletContext
-
getRequestCharacterEncoding
- Specified by:
getRequestCharacterEncoding
in interfacejavax.servlet.ServletContext
-
setRequestCharacterEncoding
- Specified by:
setRequestCharacterEncoding
in interfacejavax.servlet.ServletContext
-
getResponseCharacterEncoding
- Specified by:
getResponseCharacterEncoding
in interfacejavax.servlet.ServletContext
-
setResponseCharacterEncoding
- Specified by:
setResponseCharacterEncoding
in interfacejavax.servlet.ServletContext
-