org.kohsuke.stapler
Class Facet
java.lang.Object
org.kohsuke.stapler.Facet
- Direct Known Subclasses:
- GroovyFacet, JellyFacet, JSPFacet
public abstract class Facet
- extends java.lang.Object
Aspect of stapler that brings in an optional language binding.
- Author:
- Kohsuke Kawaguchi
Field Summary |
static java.util.logging.Logger |
LOGGER
|
Constructor Summary |
Facet()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
public static final java.util.logging.Logger LOGGER
Facet
public Facet()
buildViewDispatchers
public abstract void buildViewDispatchers(MetaClass owner,
java.util.List<Dispatcher> dispatchers)
- Adds
Dispatcher
s that look at one token and binds that
to the views associated with the 'it' object.
discover
public static java.util.List<Facet> discover(java.lang.ClassLoader cl)
- Discovers all the facets in the classloader.
createRequestDispatcher
public abstract javax.servlet.RequestDispatcher createRequestDispatcher(RequestImpl request,
java.lang.Object it,
java.lang.String viewName)
throws java.io.IOException
- Throws:
java.io.IOException
handleIndexRequest
public abstract boolean handleIndexRequest(RequestImpl req,
ResponseImpl rsp,
java.lang.Object node,
MetaClass nodeMetaClass)
throws java.io.IOException,
javax.servlet.ServletException
- Attempts to route the HTTP request to the 'index' page of the 'it' object.
- Returns:
- true if the processing succeeds. Otherwise false.
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 2008. All Rights Reserved.