Package hudson.model
Class AbstractModelObject
java.lang.Object
hudson.model.AbstractModelObject
- All Implemented Interfaces:
- ModelObject,- SearchableModelObject,- SearchItem
- Direct Known Subclasses:
- Actionable,- AdministrativeMonitor,- Api,- CloudSet,- ComputerSet,- HudsonHomeDiskUsageMonitor.Solution,- LogRecorder,- LogRecorderManager,- Node,- PluginManager,- TaskAction,- UpdateCenter,- User,- View
ModelObject with some convenience methods.- Author:
- Kohsuke Kawaguchi
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis bindsSearchobject to the URL hierarchy.final SearchIndexReturns theSearchIndexto further search sub items inside this item.Default implementation that returns the display name.protected SearchIndexBuilderDefault implementation that returns empty index.protected final voidDeprecated.protected final voidprotected final voidsendError(Exception e, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Displays the error in a page.protected final voidsendError(Exception e, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.protected final voidprotected final voidsendError(String message, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) protected final voidsendError(String message, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, boolean pre) protected final voidsendError(String message, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Deprecated.protected final voidsendError(String message, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, boolean pre) Deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.ModelObjectgetDisplayNameMethods inherited from interface hudson.search.SearchItemgetSearchGroup, getSearchIcon, getSearchUrl
- 
Constructor Details- 
AbstractModelObjectpublic AbstractModelObject()
 
- 
- 
Method Details- 
sendErrorprotected final void sendError(Exception e, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws jakarta.servlet.ServletException, IOException Displays the error in a page.- Throws:
- jakarta.servlet.ServletException
- IOException
 
- 
sendError@Deprecated protected final void sendError(Exception e, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException Deprecated.- Throws:
- javax.servlet.ServletException
- IOException
 
- 
sendError- Throws:
- jakarta.servlet.ServletException
- IOException
 
- 
sendErrorprotected final void sendError(String message, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws jakarta.servlet.ServletException, IOException - Throws:
- jakarta.servlet.ServletException
- IOException
 
- 
sendError@Deprecated protected final void sendError(String message, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException Deprecated.- Throws:
- javax.servlet.ServletException
- IOException
 
- 
sendErrorprotected final void sendError(String message, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, boolean pre) throws jakarta.servlet.ServletException, IOException - Parameters:
- pre- If true, the message is put in a PRE tag.
- Throws:
- jakarta.servlet.ServletException
- IOException
 
- 
sendError@Deprecated protected final void sendError(String message, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, boolean pre) throws javax.servlet.ServletException, IOException Deprecated.- Throws:
- javax.servlet.ServletException
- IOException
 
- 
sendError- Throws:
- jakarta.servlet.ServletException
- IOException
 
- 
requirePOSTDeprecated.UseRequirePOSTon your method.Convenience method to verify that the current request is a POST request.- Throws:
- jakarta.servlet.ServletException
 
- 
makeSearchIndexDefault implementation that returns empty index.
- 
getSearchIndexDescription copied from interface:SearchItemReturns theSearchIndexto further search sub items inside this item.- Specified by:
- getSearchIndexin interface- SearchItem
- Returns:
- SearchIndex.EMPTYif this is a leaf.
- See Also:
 
- 
getSearchDescription copied from interface:SearchableModelObjectThis bindsSearchobject to the URL hierarchy.- Specified by:
- getSearchin interface- SearchableModelObject
 
- 
getSearchNameDefault implementation that returns the display name.- Specified by:
- getSearchNamein interface- SearchItem
 
 
- 
RequirePOSTon your method.