@MetaInfServices(value=org.kohsuke.stapler.Facet.class) public class JellyFacet extends Facet implements JellyCompatibleFacet
Facet that adds Jelly as the view.| Modifier and Type | Field and Description |
|---|---|
ResourceBundleFactory |
resourceBundleFactory
Used to load
ResourceBundles. |
ScriptInvoker |
scriptInvoker
Used to invoke Jelly script.
|
static boolean |
TRACE
This flag will activate the Jelly evaluation trace.
|
ALLOW_VIEW_NAME_PATH_TRAVERSAL, LOGGER| Constructor and Description |
|---|
JellyFacet() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildIndexDispatchers(MetaClass owner,
List<Dispatcher> dispatchers) |
void |
buildViewDispatchers(MetaClass owner,
List<Dispatcher> dispatchers) |
javax.servlet.RequestDispatcher |
createRequestDispatcher(RequestImpl request,
Klass<?> type,
Object it,
String viewName) |
Collection<Class<JellyClassTearOff>> |
getClassTearOffTypes() |
protected String |
getExtensionSuffix() |
Collection<String> |
getScriptExtensions()
Gets the list of view script extensions, such as ".jelly".
|
boolean |
handleIndexRequest(RequestImpl req,
ResponseImpl rsp,
Object node,
MetaClass nodeMetaClass) |
static void |
setExpressionFactory(javax.servlet.ServletContextEvent event,
org.apache.commons.jelly.expression.ExpressionFactory factory)
Sets the Jelly
ExpressionFactory to be used to parse views. |
buildFallbackDispatchers, createRequestDispatcher, createRequestDispatcher, createValidatingDispatcher, discover, discoverExtensions, getKlass, handleIndexRequest, isBasenamepublic volatile ScriptInvoker scriptInvoker
public volatile ResourceBundleFactory resourceBundleFactory
ResourceBundles.public static boolean TRACE
public void buildViewDispatchers(MetaClass owner, List<Dispatcher> dispatchers)
buildViewDispatchers in class Facetpublic void buildIndexDispatchers(MetaClass owner, List<Dispatcher> dispatchers)
buildIndexDispatchers in class Facet@Nonnull protected String getExtensionSuffix()
getExtensionSuffix in class Facetpublic Collection<Class<JellyClassTearOff>> getClassTearOffTypes()
getClassTearOffTypes in interface JellyCompatibleFacetpublic Collection<String> getScriptExtensions()
JellyCompatibleFacetgetScriptExtensions in interface JellyCompatibleFacetpublic javax.servlet.RequestDispatcher createRequestDispatcher(RequestImpl request, Klass<?> type, Object it, String viewName) throws IOException
createRequestDispatcher in class FacetIOExceptionpublic boolean handleIndexRequest(RequestImpl req, ResponseImpl rsp, Object node, MetaClass nodeMetaClass) throws IOException, javax.servlet.ServletException
handleIndexRequest in class FacetIOExceptionjavax.servlet.ServletExceptionpublic static void setExpressionFactory(javax.servlet.ServletContextEvent event,
org.apache.commons.jelly.expression.ExpressionFactory factory)
ExpressionFactory to be used to parse views.
This method should be invoked from your implementation of
ServletContextListener.contextInitialized(ServletContextEvent).
Once views are parsed, they won't be re-parsed just because you called this method to override the expression factory.
The primary use case of this feature is to customize the behavior of JEXL evaluation.
Copyright © 2019. All rights reserved.