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
Modifier and TypeFieldDescriptionprotected final Map<String,
RequestFilterConfig> static final String
protected final NuxeoCorsFilterDescriptorRegistry
protected final Map<String,
FilterConfigDescriptor> static final String
protected final Map<String,
FilterConfigDescriptor> static final String
protected final NuxeoHeaderDescriptorRegistry
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigForRequest
(javax.servlet.http.HttpServletRequest request) javax.servlet.FilterConfig
getCorsConfigForRequest
(javax.servlet.http.HttpServletRequest request) Deprecated.com.thetransactioncompany.cors.CORSFilter
getCorsFilterForRequest
(javax.servlet.http.HttpServletRequest request) Get contributed CORS Filter for an HttpServletRequest.void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
registerFilterConfig
(String name, String pattern, boolean grant, boolean tx, boolean sync, boolean cached, boolean isPrivate, String cacheTime) void
void
unregisterContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, 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:
-
grantPatterns
-
denyPatterns
-
configCache
-
corsFilterRegistry
-
headersRegistry
-
-
Constructor Details
-
RequestControllerService
public RequestControllerService()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
registerFilterConfig
-
registerFilterConfig
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-
getCorsFilterForRequest
public com.thetransactioncompany.cors.CORSFilter getCorsFilterForRequest(javax.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
-
getCorsConfigForRequest
@Deprecated public javax.servlet.FilterConfig getCorsConfigForRequest(javax.servlet.http.HttpServletRequest request) Deprecated.Description copied from interface:RequestControllerManager
Get contributed FilterConfig for an HttpServletRequest.- Specified by:
getCorsConfigForRequest
in interfaceRequestControllerManager
- Returns:
- filter config to init CorsFilter if there is a matching request, null otherwise.
-
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
-