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 |
Constructor and Description |
---|
RequestControllerService() |
Modifier and Type | Method and Description |
---|---|
RequestFilterConfig |
computeConfigForRequest(String uri) |
FilterConfig |
computeCorsFilterConfigForUri(String uri) |
RequestFilterConfig |
getConfigForRequest(HttpServletRequest request) |
FilterConfig |
getCorsConfigForRequest(HttpServletRequest request)
Get contributed FilterConfig for an HttpServletRequest.
|
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 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
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) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public FilterConfig getCorsConfigForRequest(HttpServletRequest request)
RequestControllerManager
getCorsConfigForRequest
in interface RequestControllerManager
public FilterConfig computeCorsFilterConfigForUri(String uri)
public RequestFilterConfig getConfigForRequest(HttpServletRequest request)
getConfigForRequest
in interface RequestControllerManager
public RequestFilterConfig computeConfigForRequest(String uri)
Copyright © 2013 Nuxeo SA. All Rights Reserved.