public class GetJsContentProcessor extends Object implements JsProcessor
JsProcessor.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INVALID_MAXAGE |
static int |
DEFAULT_UNVERSIONED_MAXAGE |
static int |
DEFAULT_VERSIONED_MAXAGE |
| Constructor and Description |
|---|
GetJsContentProcessor(FeatureRegistryProvider registryProvider,
JsCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
process(JsRequest request,
JsResponseBuilder builder)
Populates or modifies the Javascript response.
|
void |
setInvalidMaxAge(Integer maxAge) |
protected void |
setResponseCacheTtl(JsResponseBuilder builder,
UriStatus vstatus)
Sets the cache TTL depending on the value of the
UriStatus object. |
void |
setUnversionedMaxAge(Integer maxAge) |
void |
setVersionedMaxAge(Integer maxAge) |
public static final int DEFAULT_VERSIONED_MAXAGE
public static final int DEFAULT_UNVERSIONED_MAXAGE
public static final int DEFAULT_INVALID_MAXAGE
@Inject public GetJsContentProcessor(FeatureRegistryProvider registryProvider, JsCompiler compiler)
@Inject(optional=true) public void setVersionedMaxAge(Integer maxAge)
@Inject(optional=true) public void setUnversionedMaxAge(Integer maxAge)
@Inject(optional=true) public void setInvalidMaxAge(Integer maxAge)
public boolean process(JsRequest request, JsResponseBuilder builder) throws JsException
JsProcessorprocess in interface JsProcessorrequest - The JS request that originated this execution.builder - The response builder to work on.JsExceptionprotected void setResponseCacheTtl(JsResponseBuilder builder, UriStatus vstatus)
UriStatus object.builder - The JsResponseBuilder object.vstatus - The UriStatus object.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.