org.kohsuke.stapler.jelly.groovy
Class GroovyClassTearOff

java.lang.Object
  extended by org.kohsuke.stapler.CachingScriptLoader<S,E>
      extended by org.kohsuke.stapler.AbstractTearOff<GroovyClassLoaderTearOff,GroovierJellyScript,java.io.IOException>
          extended by org.kohsuke.stapler.jelly.groovy.GroovyClassTearOff

public final class GroovyClassTearOff
extends AbstractTearOff<GroovyClassLoaderTearOff,GroovierJellyScript,java.io.IOException>

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.kohsuke.stapler.AbstractTearOff
classLoader, owner
 
Constructor Summary
GroovyClassTearOff(MetaClass owner)
           
 
Method Summary
 javax.servlet.RequestDispatcher createDispatcher(java.lang.Object it, java.lang.String viewName)
          Creates a RequestDispatcher that forwards to the jelly view, if available.
protected  java.lang.String getDefaultScriptExtension()
          Default file extension of this kind of scripts, such as ".jelly"
 GroovierJellyScript parseScript(java.net.URL res)
          Compiles a script into the compiled form.
 boolean serveIndexGroovy(StaplerRequest req, StaplerResponse rsp, java.lang.Object node)
           
 
Methods inherited from class org.kohsuke.stapler.AbstractTearOff
getResource, loadScript, resolveScript
 
Methods inherited from class org.kohsuke.stapler.CachingScriptLoader
clearScripts, findResource, findScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyClassTearOff

public GroovyClassTearOff(MetaClass owner)
Method Detail

getDefaultScriptExtension

protected java.lang.String getDefaultScriptExtension()
Description copied from class: AbstractTearOff
Default file extension of this kind of scripts, such as ".jelly"

Specified by:
getDefaultScriptExtension in class AbstractTearOff<GroovyClassLoaderTearOff,GroovierJellyScript,java.io.IOException>

parseScript

public GroovierJellyScript parseScript(java.net.URL res)
                                throws java.io.IOException
Description copied from class: AbstractTearOff
Compiles a script into the compiled form.

Specified by:
parseScript in class AbstractTearOff<GroovyClassLoaderTearOff,GroovierJellyScript,java.io.IOException>
Throws:
java.io.IOException

serveIndexGroovy

public boolean serveIndexGroovy(StaplerRequest req,
                                StaplerResponse rsp,
                                java.lang.Object node)
                         throws java.io.IOException,
                                javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

createDispatcher

public javax.servlet.RequestDispatcher createDispatcher(java.lang.Object it,
                                                        java.lang.String viewName)
                                                 throws java.io.IOException
Creates a RequestDispatcher that forwards to the jelly view, if available.

Throws:
java.io.IOException


Copyright © 2012. All Rights Reserved.