@ThreadSafe public final class PhotonJS extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILENAME |
| Modifier and Type | Method and Description |
|---|---|
static void |
_readJSIncludes(com.helger.commons.io.resource.IReadableResource aRes,
JSResourceSet aTarget) |
static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.js.IJSPathProvider> |
getAllRegisteredJSIncludesForGlobal() |
static void |
getAllRegisteredJSIncludesForGlobal(Collection<? super com.helger.html.resource.js.IJSPathProvider> aTarget) |
static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.js.IJSPathProvider> |
getAllRegisteredJSIncludesForThisRequest() |
static void |
getAllRegisteredJSIncludesForThisRequest(Collection<? super com.helger.html.resource.js.IJSPathProvider> aTarget) |
static boolean |
hasRegisteredJSIncludesForGlobal() |
static boolean |
hasRegisteredJSIncludesForThisRequest() |
static void |
readJSIncludesForGlobal(com.helger.commons.io.resource.IReadableResource aRes) |
static void |
registerJSIncludeForGlobal(com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Register a new JS item for global scope.
|
static void |
registerJSIncludeForGlobal(int nIndex,
com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Register a new JS item for global scope.
|
static void |
registerJSIncludeForThisRequest(com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Register a new JS item only for this request
|
static void |
unregisterAllJSIncludesFromGlobal()
Unregister all existing JS items from global scope.
|
static void |
unregisterAllJSIncludesFromThisRequest()
Unregister all existing JS items from this request
|
static void |
unregisterJSIncludeForGlobal(com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Unregister an existing JS item for global scope.
|
static void |
unregisterJSIncludeFromThisRequest(com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
Unregister a existing JS item only from this request
|
public static final String DEFAULT_FILENAME
public static void _readJSIncludes(@Nonnull com.helger.commons.io.resource.IReadableResource aRes, @Nonnull JSResourceSet aTarget)
public static void readJSIncludesForGlobal(@Nonnull com.helger.commons.io.resource.IReadableResource aRes)
public static void registerJSIncludeForGlobal(@Nonnull com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
aJSPathProvider - The JS path provider to use. May not be null.public static void registerJSIncludeForGlobal(int nIndex,
@Nonnull
com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
nIndex - The index to be used. If the value is < 0 the value is ignored
and item is appended.aJSPathProvider - The JS path provider to use. May not be null.public static void unregisterJSIncludeForGlobal(@Nonnull com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
aJSPathProvider - The JS path provider to use. May not be null.public static void unregisterAllJSIncludesFromGlobal()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.js.IJSPathProvider> getAllRegisteredJSIncludesForGlobal()
null set with all JS paths to be included
globally.public static void getAllRegisteredJSIncludesForGlobal(@Nonnull Collection<? super com.helger.html.resource.js.IJSPathProvider> aTarget)
public static boolean hasRegisteredJSIncludesForGlobal()
true if at least a single JS path has been registered
globally.public static void registerJSIncludeForThisRequest(@Nonnull com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
aJSPathProvider - The JS path provider to use. May not be null.public static void unregisterJSIncludeFromThisRequest(@Nonnull com.helger.html.resource.js.IJSPathProvider aJSPathProvider)
aJSPathProvider - The JS path provider to use. May not be null.public static void unregisterAllJSIncludesFromThisRequest()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedSet<com.helger.html.resource.js.IJSPathProvider> getAllRegisteredJSIncludesForThisRequest()
null set with all JS paths to be included in
this request.public static void getAllRegisteredJSIncludesForThisRequest(@Nonnull Collection<? super com.helger.html.resource.js.IJSPathProvider> aTarget)
public static boolean hasRegisteredJSIncludesForThisRequest()
true if at least a single JS path has been registered
for this request onlyCopyright © 2014–2023 Philip Helger. All rights reserved.