Class JAXRSApplication

java.lang.Object
jakarta.ws.rs.core.Application
org.glassfish.jersey.server.ResourceConfig
org.pentaho.platform.web.servlet.jersey.JAXRSApplication
All Implemented Interfaces:
jakarta.ws.rs.core.Configurable<org.glassfish.jersey.server.ResourceConfig>, jakarta.ws.rs.core.Configuration, org.glassfish.jersey.ApplicationSupplier, org.glassfish.jersey.ExtendedConfig, org.glassfish.jersey.server.ServerConfig

public class JAXRSApplication extends org.glassfish.jersey.server.ResourceConfig
JAXRSApplication is a class that extends ResourceConfig. This can be used to configure the JAX-RS application of the Pentaho Platform. This class will be configured as an initialization parameter for the Pentaho platform's JAXRSServlet in the web.xml file.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor for the JAXRSApplication class.
  • Method Summary

    Methods inherited from class org.glassfish.jersey.server.ResourceConfig

    addProperties, files, files, forApplication, forApplicationClass, forApplicationClass, getApplication, getApplicationName, getApplicationPath, getClasses, getClassLoader, getConfiguration, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getResources, getRuntimeType, getSingletons, hasProperty, isEnabled, isEnabled, isProperty, isRegistered, isRegistered, packages, packages, packages, property, register, register, register, register, register, register, register, register, registerClasses, registerClasses, registerFinder, registerInstances, registerInstances, registerResources, registerResources, setApplicationName, setClassLoader, setProperties

    Methods inherited from class java.lang.Object

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

    • JAXRSApplication

      public JAXRSApplication()

      The constructor for the JAXRSApplication class. This constructor can be used for setting up the necessary configurations for the JAX-RS application. It does this by registering the necessary packages and features.


      Jersey application will be recursively search into the following packages to find the resources within :

    • "org.pentaho", "com.pentaho" - Pentaho platform.
    • "com.hitachivantara","org.hitachivantara" - Security-web.

    • Following features are registered as part of Platform Jersey application initialization.

    • MultiPartFeature : Provides support for handling multipart requests.
    • JacksonFeature : Provides support for JSON serialization and deserialization along with JAXB support.