org.kohsuke.stapler.jelly
Class JellyFacet

java.lang.Object
  extended by org.kohsuke.stapler.Facet
      extended by org.kohsuke.stapler.jelly.JellyFacet

public class JellyFacet
extends Facet

Facet that adds Jelly as the view.

Author:
Kohsuke Kawaguchi

Field Summary
 ScriptInvoker scriptInvoker
          Used to invoke Jelly script.
 
Fields inherited from class org.kohsuke.stapler.Facet
LOGGER
 
Constructor Summary
JellyFacet()
           
 
Method Summary
 void buildViewDispatchers(MetaClass owner, java.util.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, java.lang.Object it, java.lang.String viewName)
           
 boolean handleIndexRequest(RequestImpl req, ResponseImpl rsp, java.lang.Object node, MetaClass nodeMetaClass)
          Attempts to route the HTTP request to the 'index' page of the 'it' object.
 
Methods inherited from class org.kohsuke.stapler.Facet
discover
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptInvoker

public volatile ScriptInvoker scriptInvoker
Used to invoke Jelly script. Can be replaced to the custom object.

Constructor Detail

JellyFacet

public JellyFacet()
Method Detail

buildViewDispatchers

public void buildViewDispatchers(MetaClass owner,
                                 java.util.List<Dispatcher> dispatchers)
Description copied from class: Facet
Adds Dispatchers that look at one token and binds that to the views associated with the 'it' object.

Specified by:
buildViewDispatchers in class Facet

createRequestDispatcher

public javax.servlet.RequestDispatcher createRequestDispatcher(RequestImpl request,
                                                               java.lang.Object it,
                                                               java.lang.String viewName)
                                                        throws java.io.IOException
Specified by:
createRequestDispatcher in class Facet
Throws:
java.io.IOException

handleIndexRequest

public boolean handleIndexRequest(RequestImpl req,
                                  ResponseImpl rsp,
                                  java.lang.Object node,
                                  MetaClass nodeMetaClass)
                           throws java.io.IOException,
                                  javax.servlet.ServletException
Description copied from class: Facet
Attempts to route the HTTP request to the 'index' page of the 'it' object.

Specified by:
handleIndexRequest in class Facet
Returns:
true if the processing succeeds. Otherwise false.
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2008. All Rights Reserved.