@MetaInfServices(value=Facet.class) public class GroovyFacet extends Facet implements JellyCompatibleFacet
Facet that brings in Groovy support on top of Jelly.| Constructor and Description |
|---|
GroovyFacet() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildViewDispatchers(MetaClass owner,
List<Dispatcher> dispatchers)
Adds
Dispatchers that look at one token and binds that
to the views associated with the 'it' object. |
javax.servlet.RequestDispatcher |
createRequestDispatcher(RequestImpl request,
Klass type,
Object it,
String viewName)
Creates a
RequestDispatcher that handles the given view, or
return null if no such view was found. |
Collection<Class<GroovyClassTearOff>> |
getClassTearOffTypes() |
Collection<String> |
getScriptExtensions()
Gets the list of view script extensions, such as ".jelly".
|
boolean |
handleIndexRequest(RequestImpl req,
ResponseImpl rsp,
Object node,
MetaClass nodeMetaClass)
Attempts to route the HTTP request to the 'index' page of the 'it' object.
|
buildFallbackDispatchers, createRequestDispatcher, discover, discoverExtensions, getKlasspublic void buildViewDispatchers(MetaClass owner, List<Dispatcher> dispatchers)
FacetDispatchers that look at one token and binds that
to the views associated with the 'it' object.buildViewDispatchers in class Facetpublic Collection<Class<GroovyClassTearOff>> 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
FacetRequestDispatcher that handles the given view, or
return null if no such view was found.createRequestDispatcher in class Facettype - If "it" is non-null, it.getClass(). Otherwise the class
from which the view is searched.IOExceptionpublic boolean handleIndexRequest(RequestImpl req, ResponseImpl rsp, Object node, MetaClass nodeMetaClass) throws IOException, javax.servlet.ServletException
FacethandleIndexRequest in class FacetIOExceptionjavax.servlet.ServletExceptionCopyright © 2014. All rights reserved.