org.kohsuke.stapler.jelly.jruby
Class JRubyFacet

java.lang.Object
  extended by org.kohsuke.stapler.Facet
      extended by org.kohsuke.stapler.jelly.jruby.JRubyFacet
All Implemented Interfaces:
JellyCompatibleFacet

@MetaInfServices(value=org.kohsuke.stapler.Facet.class)
public class JRubyFacet
extends org.kohsuke.stapler.Facet
implements JellyCompatibleFacet

Facet that adds Ruby-based view technologies.

Author:
Kohsuke Kawaguchi, Hiroshi Nakamura

Field Summary
 
Fields inherited from class org.kohsuke.stapler.Facet
LOGGER
 
Constructor Summary
JRubyFacet()
           
 
Method Summary
 void buildFallbackDispatchers(org.kohsuke.stapler.MetaClass owner, List<org.kohsuke.stapler.Dispatcher> dispatchers)
           
 void buildViewDispatchers(org.kohsuke.stapler.MetaClass owner, List<org.kohsuke.stapler.Dispatcher> dispatchers)
           
 javax.servlet.RequestDispatcher createRequestDispatcher(org.kohsuke.stapler.RequestImpl request, org.kohsuke.stapler.lang.Klass<?> type, Object it, String viewName)
           
 org.kohsuke.stapler.MetaClass getClassInfo(org.jruby.RubyClass r)
           
 Collection<Class<? extends AbstractRubyTearOff>> getClassTearOffTypes()
           
 org.kohsuke.stapler.lang.Klass<org.jruby.RubyModule> getKlass(Object o)
           
 Collection<String> getScriptExtensions()
           
 boolean handleIndexRequest(org.kohsuke.stapler.RequestImpl req, org.kohsuke.stapler.ResponseImpl rsp, Object node, org.kohsuke.stapler.MetaClass mc)
           
 org.apache.commons.jelly.Script parseScript(URL template)
           
 
Methods inherited from class org.kohsuke.stapler.Facet
createRequestDispatcher, discover, discoverExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyFacet

public JRubyFacet()
Method Detail

parseScript

public org.apache.commons.jelly.Script parseScript(URL template)
                                            throws IOException
Throws:
IOException

getKlass

public org.kohsuke.stapler.lang.Klass<org.jruby.RubyModule> getKlass(Object o)
Overrides:
getKlass in class org.kohsuke.stapler.Facet

getClassInfo

public org.kohsuke.stapler.MetaClass getClassInfo(org.jruby.RubyClass r)

buildViewDispatchers

public void buildViewDispatchers(org.kohsuke.stapler.MetaClass owner,
                                 List<org.kohsuke.stapler.Dispatcher> dispatchers)
Specified by:
buildViewDispatchers in class org.kohsuke.stapler.Facet

buildFallbackDispatchers

public void buildFallbackDispatchers(org.kohsuke.stapler.MetaClass owner,
                                     List<org.kohsuke.stapler.Dispatcher> dispatchers)
Overrides:
buildFallbackDispatchers in class org.kohsuke.stapler.Facet

getClassTearOffTypes

public Collection<Class<? extends AbstractRubyTearOff>> getClassTearOffTypes()
Specified by:
getClassTearOffTypes in interface JellyCompatibleFacet

getScriptExtensions

public Collection<String> getScriptExtensions()
Specified by:
getScriptExtensions in interface JellyCompatibleFacet

createRequestDispatcher

public javax.servlet.RequestDispatcher createRequestDispatcher(org.kohsuke.stapler.RequestImpl request,
                                                               org.kohsuke.stapler.lang.Klass<?> type,
                                                               Object it,
                                                               String viewName)
                                                        throws IOException
Overrides:
createRequestDispatcher in class org.kohsuke.stapler.Facet
Throws:
IOException

handleIndexRequest

public boolean handleIndexRequest(org.kohsuke.stapler.RequestImpl req,
                                  org.kohsuke.stapler.ResponseImpl rsp,
                                  Object node,
                                  org.kohsuke.stapler.MetaClass mc)
                           throws IOException,
                                  javax.servlet.ServletException
Specified by:
handleIndexRequest in class org.kohsuke.stapler.Facet
Throws:
IOException
javax.servlet.ServletException


Copyright © 2013. All Rights Reserved.