|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kohsuke.stapler.Facet
public abstract class Facet
Aspect of stapler that brings in an optional language binding.
Put MetaInfServices on subtypes so that Stapler can discover them.
| Field Summary | |
|---|---|
static java.util.logging.Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
Facet()
|
|
| Method Summary | ||
|---|---|---|
void |
buildFallbackDispatchers(MetaClass owner,
java.util.List<Dispatcher> dispatchers)
Adds Dispatchers that do catch-all behaviours like "doDispatch" does. |
|
abstract 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. |
|
abstract javax.servlet.RequestDispatcher |
createRequestDispatcher(RequestImpl request,
java.lang.Class type,
java.lang.Object it,
java.lang.String viewName)
Creates a RequestDispatcher that handles the given view, or
return null if no such view was found. |
|
static java.util.List<Facet> |
discover(java.lang.ClassLoader cl)
Discovers all the facets in the classloader. |
|
static
|
discoverExtensions(java.lang.Class<T> type,
java.lang.ClassLoader... cls)
|
|
abstract 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.logging.Logger LOGGER
| Constructor Detail |
|---|
public Facet()
| Method Detail |
|---|
public abstract void buildViewDispatchers(MetaClass owner,
java.util.List<Dispatcher> dispatchers)
Dispatchers that look at one token and binds that
to the views associated with the 'it' object.
public void buildFallbackDispatchers(MetaClass owner,
java.util.List<Dispatcher> dispatchers)
Dispatchers that do catch-all behaviours like "doDispatch" does.
public static java.util.List<Facet> discover(java.lang.ClassLoader cl)
public static <T> java.util.List<T> discoverExtensions(java.lang.Class<T> type,
java.lang.ClassLoader... cls)
public abstract javax.servlet.RequestDispatcher createRequestDispatcher(RequestImpl request,
java.lang.Class type,
java.lang.Object it,
java.lang.String viewName)
throws java.io.IOException
RequestDispatcher that handles the given view, or
return null if no such view was found.
type - If "it" is non-null, it.getClass(). Otherwise the class
from which the view is searched.
java.io.IOException
public abstract boolean handleIndexRequest(RequestImpl req,
ResponseImpl rsp,
java.lang.Object node,
MetaClass nodeMetaClass)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||