Package org.pentaho.platform.web.servlet
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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected booleanstatic final StringFields 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 org.springframework.context.ApplicationContextprotected org.springframework.context.ConfigurableApplicationContextvoidinit()voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidservice(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, 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
-
MIME_TYPE
- See Also:
-
GET_HEADERS
- See Also:
-
SET_STATUS
- See Also:
-
ACCEPT
- See Also:
-
GET
- See Also:
-
SendEmptyEntityForServicesFlag
protected boolean SendEmptyEntityForServicesFlag
-
-
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:
servicein classorg.glassfish.jersey.servlet.ServletContainer- 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
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classorg.glassfish.jersey.servlet.ServletContainer- Throws:
jakarta.servlet.ServletException
-
getAppContext
protected org.springframework.context.ApplicationContext getAppContext()
-