Class ProcessorContext
- java.lang.Object
-
- com.composum.sling.clientlibs.processor.ProcessorContext
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_KEY
protected ExecutorService
executorService
protected Map<String,Object>
hints
protected boolean
mapClientlibURLs
protected org.apache.sling.api.SlingHttpServletRequest
request
protected org.apache.sling.api.resource.ResourceResolver
resolver
protected boolean
useMinifiedFiles
-
Constructor Summary
Constructors Constructor Description ProcessorContext(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.resource.ResourceResolver resolver, ExecutorService executorService, boolean mapClientlibURLs, boolean useMinifiedFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Runnable runnable)
Schedules the runnable for execution in the future.Map<String,Object>
getHints()
org.apache.sling.api.SlingHttpServletRequest
getRequest()
org.apache.sling.api.resource.ResourceResolver
getResolver()
void
hint(String key, Object value)
boolean
mapClientlibURLs()
<T> Future<T>
submit(Callable<T> callable)
Schedules something for execution in the future.boolean
useMinifiedFiles()
-
-
-
Field Detail
-
CONTEXT_KEY
public static final String CONTEXT_KEY
-
request
protected final org.apache.sling.api.SlingHttpServletRequest request
-
resolver
protected final org.apache.sling.api.resource.ResourceResolver resolver
-
executorService
protected final ExecutorService executorService
-
mapClientlibURLs
protected final boolean mapClientlibURLs
-
useMinifiedFiles
protected final boolean useMinifiedFiles
-
-
Constructor Detail
-
ProcessorContext
public ProcessorContext(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.resource.ResourceResolver resolver, ExecutorService executorService, boolean mapClientlibURLs, boolean useMinifiedFiles)
-
-
Method Detail
-
getRequest
public org.apache.sling.api.SlingHttpServletRequest getRequest()
-
getResolver
public org.apache.sling.api.resource.ResourceResolver getResolver()
-
mapClientlibURLs
public boolean mapClientlibURLs()
-
useMinifiedFiles
public boolean useMinifiedFiles()
-
execute
public void execute(Runnable runnable)
Schedules the runnable for execution in the future.
-
submit
public <T> Future<T> submit(Callable<T> callable)
Schedules something for execution in the future.
-
-