Package com.orchestranetworks.rest
Class RESTApplicationAbstract
java.lang.Object
jakarta.ws.rs.core.Application
com.orchestranetworks.rest.RESTApplicationAbstract
- All Implemented Interfaces:
ApplicationConstant
Defines the components for a REST Toolkit JAX-RS application.
An EBX® web application (war), that provides JAX-RS services,
must supply a concrete subclass of this abstract class.
It must be annotated with @ApplicationPath
to define the base URI. The subclass is expected to define:
- which packages contain the REST resources classes or to register each class explicitly,
- custom application-wide properties.
If the web application also implements an EBX® module it must also be registered.
See JSR 370: JavaTM API for RESTful Web Services - Specification for more information on JAX-RS.
- Since:
- 5.9.0
-
Field Summary
Fields inherited from interface com.orchestranetworks.rest.ApplicationConstant
KEY_SERIALIZE_NULL_VALUES, REST_DEFAULT_APPLICATION_PATH, REST_DEFAULT_OPENAPI_APPLICATION_PATH
-
Constructor Summary
ConstructorDescriptionRESTApplicationAbstract
(Consumer<ApplicationConfigurator> aConfigurator) Creates a new REST Toolkit application configuration initialized with mandatory and custom properties, resources and providers. -
Method Summary
Modifier and TypeMethodDescriptionThis method cannot be overridden, use insteadApplicationConfigurator.register(Class)
.This method cannot be overridden, use insteadApplicationConfigurator.addProperties(Map)
.This method cannot be overridden, use insteadApplicationConfigurator.register(Object)
.
-
Constructor Details
-
RESTApplicationAbstract
Creates a new REST Toolkit application configuration initialized with mandatory and custom properties, resources and providers.- Parameters:
aConfigurator
- This parameter is used to define the custom components of that REST Toolkit application.
-
-
Method Details
-
getClasses
This method cannot be overridden, use insteadApplicationConfigurator.register(Class)
.- Overrides:
getClasses
in classApplication
- See Also:
-
getProperties
This method cannot be overridden, use insteadApplicationConfigurator.addProperties(Map)
.- Overrides:
getProperties
in classApplication
- See Also:
-
getSingletons
This method cannot be overridden, use insteadApplicationConfigurator.register(Object)
.- Overrides:
getSingletons
in classApplication
- See Also:
-