Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kohsuke.stapler.jelly.jruby;
 
 import  org.apache.commons.jelly.Script;
 
Dispatcher that invokes view script.

Author(s):
Kohsuke Kawaguchi
abstract class ScriptInvokingDispatcher extends Dispatcher {
    protected boolean invokeScript(RequestImpl reqResponseImpl rspObject nodeString next, Script scriptthrows IOExceptionServletException {
        try {
            if(script==nullreturn false;
            req.tokens.next();
            if(traceable())
                trace(req,rsp,"Invoking "+next+" on "+node+" for "+req.tokens);
            WebApp.getCurrent().getFacet(JellyFacet.class)..invokeScript(reqrspscriptnode);
            return true;
        } catch (RuntimeException e) {
            throw e;
        } catch (IOException e) {
            throw e;
        } catch (Exception e) {
            throw new ServletException(e);
        }
    }
    public String toString() {
        return "TOKEN for url=/TOKEN/...";
    }
New to GrepCode? Check out our FAQ X