public class RequestControllerService extends DefaultComponent implements RequestControllerManager
RequestControllerManager
interface. Contains both the Extension point
logic and the service implementation.Modifier and Type | Field and Description |
---|---|
protected static Map<String,RequestFilterConfig> |
configCache |
static String |
CORS_CONFIG_EP |
protected static NuxeoCorsFilterDescriptorRegistry |
corsFilterRegistry |
protected static Map<String,FilterConfigDescriptor> |
denyPatterns |
static String |
FILTER_CONFIG_EP |
protected static Map<String,javax.servlet.FilterConfig> |
filterConfigCache |
protected static Map<String,FilterConfigDescriptor> |
grantPatterns |
static String |
HEADERS_CONFIG_EP |
protected Map<String,String> |
headersCache |
protected static NuxeoHeaderDescriptorRegistry |
headersRegistry |
lastModified
Constructor and Description |
---|
RequestControllerService() |
Modifier and Type | Method and Description |
---|---|
protected static Map<String,String> |
buildHeadersCache() |
RequestFilterConfig |
computeConfigForRequest(String uri) |
javax.servlet.FilterConfig |
computeCorsFilterConfigForUri(String uri) |
RequestFilterConfig |
getConfigForRequest(javax.servlet.http.HttpServletRequest request) |
javax.servlet.FilterConfig |
getCorsConfigForRequest(javax.servlet.http.HttpServletRequest request)
Get contributed FilterConfig for an HttpServletRequest.
|
Map<String,String> |
getResponseHeaders() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
registerFilterConfig(FilterConfigDescriptor desc) |
void |
registerFilterConfig(String name,
String pattern,
boolean grant,
boolean tx,
boolean sync,
boolean cached,
boolean isPrivate,
String cacheTime) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
public static final String FILTER_CONFIG_EP
public static final String CORS_CONFIG_EP
public static final String HEADERS_CONFIG_EP
protected static final Map<String,FilterConfigDescriptor> grantPatterns
protected static final Map<String,FilterConfigDescriptor> denyPatterns
protected static final Map<String,RequestFilterConfig> configCache
protected static final Map<String,javax.servlet.FilterConfig> filterConfigCache
protected static final NuxeoCorsFilterDescriptorRegistry corsFilterRegistry
protected static final NuxeoHeaderDescriptorRegistry headersRegistry
protected Map<String,String> headersCache
public RequestControllerService()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void registerFilterConfig(String name, String pattern, boolean grant, boolean tx, boolean sync, boolean cached, boolean isPrivate, String cacheTime)
public void registerFilterConfig(FilterConfigDescriptor desc)
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public javax.servlet.FilterConfig getCorsConfigForRequest(javax.servlet.http.HttpServletRequest request)
RequestControllerManager
getCorsConfigForRequest
in interface RequestControllerManager
public javax.servlet.FilterConfig computeCorsFilterConfigForUri(String uri)
public RequestFilterConfig getConfigForRequest(javax.servlet.http.HttpServletRequest request)
getConfigForRequest
in interface RequestControllerManager
public RequestFilterConfig computeConfigForRequest(String uri)
public Map<String,String> getResponseHeaders()
getResponseHeaders
in interface RequestControllerManager
protected static Map<String,String> buildHeadersCache()
Copyright © 2018 Nuxeo. All rights reserved.