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

    Fields
    Modifier and Type
    Field
    Description
    static final ThreadLocal
     

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD

    Fields inherited from interface org.glassfish.jersey.server.spi.Container

    DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    callParentServiceMethod(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    protected org.springframework.context.ConfigurableApplicationContext
     
    void
    service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
    service(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res)
     
    void
    setApplicationContext(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, service

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init

    Methods inherited from class jakarta.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • requestThread

      public static final ThreadLocal requestThread
  • Constructor Details

    • JAXRSPluginServlet

      public JAXRSPluginServlet()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.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:
      service in class org.glassfish.jersey.servlet.ServletContainer
      Throws:
      jakarta.servlet.ServletException
      IOException
    • callParentServiceMethod

      protected void callParentServiceMethod(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Throws:
      jakarta.servlet.ServletException
      IOException
    • service

      public void service(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) throws jakarta.servlet.ServletException, IOException
      Specified by:
      service in interface jakarta.servlet.Servlet
      Overrides:
      service in class org.glassfish.jersey.servlet.ServletContainer
      Throws:
      jakarta.servlet.ServletException
      IOException