Class JAXRSServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.glassfish.jersey.servlet.ServletContainer
org.pentaho.platform.web.servlet.JAXRSServlet
All Implemented Interfaces:
jakarta.servlet.Filter, jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, org.glassfish.jersey.server.spi.Container

public class JAXRSServlet extends org.glassfish.jersey.servlet.ServletContainer
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 String
     
    static final String
     
    static final String
     
    static final String
     
    protected boolean
     
    static final String
     

    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 org.springframework.context.ApplicationContext
     
    protected org.springframework.context.ConfigurableApplicationContext
     
    void
     
    void
    service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
    service(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res)
     

    Methods inherited from class org.glassfish.jersey.servlet.ServletContainer

    destroy, doFilter, doFilter, getApplicationHandler, getConfiguration, getServletContext, getStaticContentPattern, getWebComponent, 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

  • Constructor Details

    • JAXRSServlet

      public JAXRSServlet()
  • Method Details

    • 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
    • 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
    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class org.glassfish.jersey.servlet.ServletContainer
      Throws:
      jakarta.servlet.ServletException
    • getAppContext

      protected org.springframework.context.ApplicationContext getAppContext()