|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.stapler.WebApp
public class WebApp
Object scoped to the entire webapp. Mostly used for configuring behavior of Stapler.
In contrast, Stapler
is a servlet, so there can be multiple instances per webapp.
Field Summary | |
---|---|
javax.servlet.ServletContext |
context
ServletContext for this webapp. |
java.util.Map<java.lang.String,java.lang.String> |
defaultEncodingForStaticResources
MIME type -> encoding map that determines how static contents in the war file is served. |
java.util.List<Facet> |
facets
Activated facets. |
java.util.Map<java.lang.Class,java.lang.Class[]> |
wrappers
Duck-type wrappers for the given class. |
Constructor Summary | |
---|---|
WebApp(javax.servlet.ServletContext context)
|
Method Summary | ||
---|---|---|
static WebApp |
get(javax.servlet.ServletContext context)
Obtains the WebApp associated with the given ServletContext . |
|
java.lang.ClassLoader |
getClassLoader()
|
|
static WebApp |
getCurrent()
Gets the current WebApp that the calling thread is associated with. |
|
|
getFacet(java.lang.Class<T> type)
If the facet of the given type exists, return it. |
|
MetaClass |
getMetaClass(java.lang.Class c)
|
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the classloader used by StaplerRequest.bindJSON(Class, JSONObject) and its sibling methods. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final javax.servlet.ServletContext context
ServletContext
for this webapp.
public final java.util.Map<java.lang.Class,java.lang.Class[]> wrappers
public final java.util.Map<java.lang.String,java.lang.String> defaultEncodingForStaticResources
public final java.util.List<Facet> facets
Constructor Detail |
---|
public WebApp(javax.servlet.ServletContext context)
Method Detail |
---|
public static WebApp get(javax.servlet.ServletContext context)
WebApp
associated with the given ServletContext
.
public java.lang.ClassLoader getClassLoader()
public <T extends Facet> T getFacet(java.lang.Class<T> type)
public void setClassLoader(java.lang.ClassLoader classLoader)
StaplerRequest.bindJSON(Class, JSONObject)
and its sibling methods.
public MetaClass getMetaClass(java.lang.Class c)
public static WebApp getCurrent()
WebApp
that the calling thread is associated with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |