Package hudson.model

Class AbstractModelObject

    • Constructor Detail

      • AbstractModelObject

        public AbstractModelObject()
    • Method Detail

      • sendError

        protected final void sendError​(Exception e,
                                       org.kohsuke.stapler.StaplerRequest req,
                                       org.kohsuke.stapler.StaplerResponse rsp)
                                throws javax.servlet.ServletException,
                                       IOException
        Displays the error in a page.
        Throws:
        javax.servlet.ServletException
        IOException
      • sendError

        protected final void sendError​(Exception e)
                                throws javax.servlet.ServletException,
                                       IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • sendError

        protected final void sendError​(String message,
                                       org.kohsuke.stapler.StaplerRequest req,
                                       org.kohsuke.stapler.StaplerResponse rsp)
                                throws javax.servlet.ServletException,
                                       IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • sendError

        protected final void sendError​(String message,
                                       org.kohsuke.stapler.StaplerRequest req,
                                       org.kohsuke.stapler.StaplerResponse rsp,
                                       boolean pre)
                                throws javax.servlet.ServletException,
                                       IOException
        Parameters:
        pre - If true, the message is put in a PRE tag.
        Throws:
        javax.servlet.ServletException
        IOException
      • sendError

        protected final void sendError​(String message)
                                throws javax.servlet.ServletException,
                                       IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • requirePOST

        @Deprecated
        protected final void requirePOST()
                                  throws javax.servlet.ServletException
        Deprecated.
        Use RequirePOST on your method.
        Convenience method to verify that the current request is a POST request.
        Throws:
        javax.servlet.ServletException
      • makeSearchIndex

        protected SearchIndexBuilder makeSearchIndex()
        Default implementation that returns empty index.
      • getSearchName

        public String getSearchName()
        Default implementation that returns the display name.
        Specified by:
        getSearchName in interface SearchItem