Package com.adobe.granite.contexthub.api
Interface CodeService
-
public interface CodeService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getKernelCode(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns generated output of kernel.js.java.lang.String
getKernelCodeETag(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns the ETag for kernel.js for the particular contexthub configuration.java.lang.String
getUICode(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns generated output of ui.js.java.lang.String
getUICodeETag(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns the ETag for ui.js for the particular contexthub configuration.
-
-
-
Method Detail
-
getKernelCode
java.lang.String getKernelCode(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns generated output of kernel.js. Output is built usingContextHub.getKernelCode(SlingHttpServletRequest, SlingHttpServletResponse)
and minimized if not set to debug.- Parameters:
request
- requestresponse
- response- Returns:
- ContextHub's kernel JavaScript code
-
getUICode
java.lang.String getUICode(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns generated output of ui.js. Output is built usingContextHub.getUICode(SlingHttpServletRequest, SlingHttpServletResponse)
and minimized if not set to debug- Parameters:
request
- requestresponse
- response- Returns:
- output of ui.js
-
getKernelCodeETag
java.lang.String getKernelCodeETag(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns the ETag for kernel.js for the particular contexthub configuration. The contexthub configuration, corresponding to whose kernel.js' the ETag should be returned, is retrieved from the given request object.- Parameters:
request
- The request object from which the contexthub configuration path is retrieved- Returns:
- The ETag as
String
-
getUICodeETag
java.lang.String getUICodeETag(SlingHttpServletRequest request, SlingHttpServletResponse response)
Returns the ETag for ui.js for the particular contexthub configuration. The contexthub configuration, corresponding to whose ui.js' the ETag should be returned, is retrieved from the given request object.- Parameters:
request
- The request object from which the contexthub configuration path is retrieved- Returns:
- The ETag as
String
-
-