Class ProcessorContext
- java.lang.Object
-
- com.composum.sling.clientlibs.processor.ProcessorContext
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXT_KEYprotected ExecutorServiceexecutorServiceprotected Map<String,Object>hintsprotected booleanmapClientlibURLsprotected org.apache.sling.api.SlingHttpServletRequestrequestprotected org.apache.sling.api.resource.ResourceResolverresolverprotected booleanuseMinifiedFiles
-
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 voidexecute(Runnable runnable)Schedules the runnable for execution in the future.Map<String,Object>getHints()org.apache.sling.api.SlingHttpServletRequestgetRequest()org.apache.sling.api.resource.ResourceResolvergetResolver()voidhint(String key, Object value)booleanmapClientlibURLs()<T> Future<T>submit(Callable<T> callable)Schedules something for execution in the future.booleanuseMinifiedFiles()
-
-
-
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.
-
-