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 Stringprotected List<NuxeoCorsFilterDescriptor> protected Map<String, FilterConfigDescriptor> static final Stringprotected Map<String, FilterConfigDescriptor> static final StringFields 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.CORSFiltergetCorsFilterForRequest(jakarta.servlet.http.HttpServletRequest request) Get contributed CORS Filter for an HttpServletRequest.voidstart(ComponentContext context) Start the component.voidstop(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, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent
-
getCorsFilterForRequest
public com.thetransactioncompany.cors.CORSFilter getCorsFilterForRequest(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:RequestControllerManagerGet contributed CORS Filter for an HttpServletRequest.- Specified by:
getCorsFilterForRequestin interfaceRequestControllerManager- Returns:
- the CORS filter if there is a matching request, otherwise
null
-
getConfigForRequest
- Specified by:
getConfigForRequestin interfaceRequestControllerManager
-
computeConfigForRequest
-
getResponseHeaders
- Specified by:
getResponseHeadersin interfaceRequestControllerManager- Returns:
- a map with the header names to add to the HTTP response with their values
-