Package org.pentaho.platform.web.servlet
Class JAXRSPluginServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.sun.jersey.spi.container.servlet.ServletContainer
com.sun.jersey.spi.spring.container.servlet.SpringServlet
org.pentaho.platform.web.servlet.JAXRSPluginServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Filter,javax.servlet.Servlet,javax.servlet.ServletConfig,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class JAXRSPluginServlet
extends com.sun.jersey.spi.spring.container.servlet.SpringServlet
implements org.springframework.context.ApplicationContextAware
This should only be used by a plugin in the plugin.spring.xml file to initialize a Jersey. The presence of this
servlet in the spring file will make it possible to write JAX-RS POJOs in your plugin.
- Author:
- Aaron Phillips
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.jersey.spi.container.servlet.ServletContainer
com.sun.jersey.spi.container.servlet.ServletContainer.ContextInjectableProvider<T extends Object> -
Field Summary
FieldsFields inherited from class com.sun.jersey.spi.spring.container.servlet.SpringServlet
CONTEXT_CONFIG_LOCATIONFields inherited from class com.sun.jersey.spi.container.servlet.ServletContainer
APPLICATION_CONFIG_CLASS, FEATURE_ALLOW_RAW_MANAGED_BEANS, FEATURE_FILTER_FORWARD_ON_404, GLASSFISH_DEFAULT_ERROR_PAGE_RESPONSE, JSP_TEMPLATES_BASE_PATH, PROPERTY_FILTER_CONTEXT_PATH, PROPERTY_WEB_PAGE_CONTENT_REGEX, RESOURCE_CONFIG_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcallParentServiceMethod(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected org.springframework.context.ConfigurableApplicationContextprotected com.sun.jersey.api.core.ResourceConfiggetDefaultResourceConfig(Map<String, Object> props, com.sun.jersey.spi.container.servlet.WebConfig webConfig) protected voidinitiate(com.sun.jersey.api.core.ResourceConfig rc, com.sun.jersey.spi.container.WebApplication wa) voidservice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) voidservice(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class com.sun.jersey.spi.spring.container.servlet.SpringServlet
getChildContext, getDefaultContextMethods inherited from class com.sun.jersey.spi.container.servlet.ServletContainer
configure, configure, configure, create, destroy, doFilter, doFilter, getDefaultResourceConfig, getServletContext, getStaticContentPattern, getWebConfig, init, init, init, load, reload, serviceMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModifiedMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
-
Field Details
-
requestThread
-
-
Constructor Details
-
JAXRSPluginServlet
public JAXRSPluginServlet()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getContext
protected org.springframework.context.ConfigurableApplicationContext getContext()- Overrides:
getContextin classcom.sun.jersey.spi.spring.container.servlet.SpringServlet
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
servicein classcom.sun.jersey.spi.container.servlet.ServletContainer- Throws:
javax.servlet.ServletExceptionIOException
-
callParentServiceMethod
protected void callParentServiceMethod(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
service
public void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws javax.servlet.ServletException, IOException - Specified by:
servicein interfacejavax.servlet.Servlet- Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
initiate
protected void initiate(com.sun.jersey.api.core.ResourceConfig rc, com.sun.jersey.spi.container.WebApplication wa) - Overrides:
initiatein classcom.sun.jersey.spi.spring.container.servlet.SpringServlet
-
getDefaultResourceConfig
protected com.sun.jersey.api.core.ResourceConfig getDefaultResourceConfig(Map<String, Object> props, com.sun.jersey.spi.container.servlet.WebConfig webConfig) throws javax.servlet.ServletException- Overrides:
getDefaultResourceConfigin classcom.sun.jersey.spi.spring.container.servlet.SpringServlet- Throws:
javax.servlet.ServletException
-