Class RequestControllerService
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.web.common.requestcontroller.service.RequestControllerService
- All Implemented Interfaces:
RequestControllerManager
,Adaptable
,Component
,Extensible
,TimestampedService
Runtime component that implements the
RequestControllerManager
interface. Contains both the Extension point
logic and the service implementation.- Author:
- tiry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map
<String, RequestFilterConfig> static final String
protected List
<NuxeoCorsFilterDescriptor> protected Map
<String, FilterConfigDescriptor> static final String
protected Map
<String, FilterConfigDescriptor> static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfigForRequest
(jakarta.servlet.http.HttpServletRequest request) com.thetransactioncompany.cors.CORSFilter
getCorsFilterForRequest
(jakarta.servlet.http.HttpServletRequest request) Get contributed CORS Filter for an HttpServletRequest.void
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
FILTER_CONFIG_EP
- See Also:
-
CORS_CONFIG_EP
- See Also:
-
HEADERS_CONFIG_EP
- Since:
- 6.0
- See Also:
-
configCache
-
grantPatterns
-
denyPatterns
-
corsFilters
-
headerValues
-
-
Constructor Details
-
RequestControllerService
public RequestControllerService()
-
-
Method Details
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-
getCorsFilterForRequest
public com.thetransactioncompany.cors.CORSFilter getCorsFilterForRequest(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:RequestControllerManager
Get contributed CORS Filter for an HttpServletRequest.- Specified by:
getCorsFilterForRequest
in interfaceRequestControllerManager
- Returns:
- the CORS filter if there is a matching request, otherwise
null
-
getConfigForRequest
- Specified by:
getConfigForRequest
in interfaceRequestControllerManager
-
computeConfigForRequest
-
getResponseHeaders
- Specified by:
getResponseHeaders
in interfaceRequestControllerManager
- Returns:
- a map with the header names to add to the HTTP response with their values
-