public class CachingPlugin extends PluginActivator implements ServiceRequestFilterListener, ServiceResponseFilterListener
Modifier and Type | Field and Description |
---|---|
private static String |
CACHABLE_PATH |
private Pattern |
cachablePath |
private static String |
HEADER_CACHE_CONTROL |
private Logger |
logger |
(package private) javax.servlet.http.HttpServletRequest |
req |
private TimeService |
timeService |
bundle, dmx, mf
Constructor and Description |
---|
CachingPlugin() |
Modifier and Type | Method and Description |
---|---|
private long |
requestObjectId(com.sun.jersey.spi.container.ContainerRequest request) |
private DMXObject |
responseObject(com.sun.jersey.spi.container.ContainerResponse response) |
void |
serviceRequestFilter(com.sun.jersey.spi.container.ContainerRequest request) |
void |
serviceResponseFilter(com.sun.jersey.spi.container.ContainerResponse response) |
private void |
setCacheControlHeader(com.sun.jersey.spi.container.ContainerResponse response,
String value) |
private void |
setHeader(com.sun.jersey.spi.container.ContainerResponse response,
String header,
String value) |
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
private static String CACHABLE_PATH
private static String HEADER_CACHE_CONTROL
private TimeService timeService
@Context javax.servlet.http.HttpServletRequest req
private Pattern cachablePath
public CachingPlugin()
public void serviceRequestFilter(com.sun.jersey.spi.container.ContainerRequest request)
serviceRequestFilter
in interface ServiceRequestFilterListener
public void serviceResponseFilter(com.sun.jersey.spi.container.ContainerResponse response)
serviceResponseFilter
in interface ServiceResponseFilterListener
private long requestObjectId(com.sun.jersey.spi.container.ContainerRequest request)
private DMXObject responseObject(com.sun.jersey.spi.container.ContainerResponse response)
private void setCacheControlHeader(com.sun.jersey.spi.container.ContainerResponse response, String value)
Copyright © 2018. All Rights Reserved.