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 |
---|---|
static String |
CORS_CONFIG_EP |
static String |
FILTER_CONFIG_EP |
static String |
HEADERS_CONFIG_EP |
Constructor and Description |
---|
RequestControllerService() |
Modifier and Type | Method and Description |
---|---|
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, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final String FILTER_CONFIG_EP
public static final String CORS_CONFIG_EP
public static final String HEADERS_CONFIG_EP
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
Copyright © 2015 Nuxeo SA. All rights reserved.