|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.Descriptor<PageDecorator>
hudson.model.PageDecorator
public abstract class PageDecorator
Participates in the rendering of HTML pages for all pages of Hudson.
This class provides a few hooks to augument the HTML generation process of Hudson, across all the HTML pages that Hudson delivers.
For example, if you'd like to add a Google Analytics stat to Hudson, then you need to inject a small script fragment to all Hudson pages. This extension point provides a means to do that.
Plugin
s that contribute this extension point
should implement a new decorator and put Extension
on the class.
If this extension point needs to expose a global configuration, write this jelly page.
See Descriptor
for more about this. Optional.
This page is added right before the </body> tag. Convenient place for adding tracking beacons, etc.
This page is added right before the </head> tag. Convenient place for additional stylesheet, <meta> tags, etc.
This is a generalization of the X-Jenkins header that aids auto-discovery. This fragment can write additional <st:header name="..." value="..." /> tags that go along with it.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.model.Descriptor |
---|
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary | |
---|---|
static List<PageDecorator> |
ALL
Deprecated. as of 1.286 Use all() for read access, and use Extension for registration. |
Fields inherited from class hudson.model.Descriptor |
---|
clazz |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
protected |
PageDecorator()
|
protected |
PageDecorator(Class<? extends PageDecorator> yourClass)
Deprecated. as of 1.425 Use the default constructor that's less error prone |
Method Summary | |
---|---|
static ExtensionList<PageDecorator> |
all()
Returns all the registered PageDecorator descriptors. |
Descriptor<PageDecorator> |
getDescriptor()
Gets the descriptor for this instance. |
String |
getDisplayName()
Unless this object has additional web presence, display name is not used at all. |
String |
getUrl()
Obtains the URL of this object, excluding the context path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final List<PageDecorator> ALL
all()
for read access, and use Extension
for registration.
Constructor Detail |
---|
protected PageDecorator(Class<? extends PageDecorator> yourClass)
yourClass
- pass-in "this.getClass()" (except that the constructor parameters cannot use 'this',
so you'd have to hard-code the class name.protected PageDecorator()
Method Detail |
---|
public final Descriptor<PageDecorator> getDescriptor()
Describable
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass()==b.getClass() then
a.getDescriptor()==b.getDescriptor() must hold.
getDescriptor
in interface Describable<PageDecorator>
public String getDisplayName()
getDisplayName
in class Descriptor<PageDecorator>
public final String getUrl()
Every PageDecorator
is bound to URL via Jenkins.getDescriptor()
.
This method returns such an URL.
public static ExtensionList<PageDecorator> all()
PageDecorator
descriptors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |