Package org.pentaho.platform.web.servlet
Class JAXRSPluginServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.glassfish.jersey.servlet.ServletContainer
org.pentaho.platform.web.servlet.JAXRSPluginServlet
- All Implemented Interfaces:
jakarta.servlet.Filter,jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,org.glassfish.jersey.server.spi.Container,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class JAXRSPluginServlet
extends org.glassfish.jersey.servlet.ServletContainer
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:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEADFields inherited from interface org.glassfish.jersey.server.spi.Container
DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcallParentServiceMethod(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected org.springframework.context.ConfigurableApplicationContextvoidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidservice(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.glassfish.jersey.servlet.ServletContainer
destroy, doFilter, doFilter, getApplicationHandler, getConfiguration, getServletContext, getStaticContentPattern, getWebComponent, init, init, init, reload, reload, serviceMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, initMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, 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() -
service
public void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
servicein classorg.glassfish.jersey.servlet.ServletContainer- Throws:
jakarta.servlet.ServletExceptionIOException
-
callParentServiceMethod
protected void callParentServiceMethod(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
service
public void service(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) throws jakarta.servlet.ServletException, IOException - Specified by:
servicein interfacejakarta.servlet.Servlet- Overrides:
servicein classorg.glassfish.jersey.servlet.ServletContainer- Throws:
jakarta.servlet.ServletExceptionIOException
-