Package com.cloudbees.jenkins.support
Class SupportAction
java.lang.Object
com.cloudbees.jenkins.support.SupportAction
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
,org.kohsuke.stapler.StaplerProxy
@Extension
@ExportedBean
public class SupportAction
extends Object
implements RootAction, org.kohsuke.stapler.StaplerProxy
Main root action for generating support.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doDeleteBundles
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) void
doDownload
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Generates a support bundle with selected components from the UI.void
doDownloadBundles
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) void
doGenerateAllBundles
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Generates a support bundle with selected components from the UI.void
doGenerateBundle
(String components, org.kohsuke.stapler.StaplerResponse rsp) Generates a support bundle with only requested components.org.jvnet.localizer.Localizable
org.jvnet.localizer.Localizable
final Api
getApi()
Remote API access.boolean
boolean
-
Field Details
-
CREATE_BUNDLE
Deprecated.
-
-
Constructor Details
-
SupportAction
public SupportAction()
-
-
Method Details
-
getTarget
- Specified by:
getTarget
in interfaceorg.kohsuke.stapler.StaplerProxy
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getActionTitleText
-
getActionTitle
public org.jvnet.localizer.Localizable getActionTitle() -
getActionBlurb
public org.jvnet.localizer.Localizable getActionBlurb() -
getComponents
-
getCategorizedComponents
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Map<Component.ComponentCategory,List<Component>> getCategorizedComponents() -
getBundles
-
getApi
Remote API access. -
isAnonymized
public boolean isAnonymized() -
doDeleteBundles
public void doDeleteBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doDownloadBundles
public void doDownloadBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletException
IOException
-
doDownload
public void doDownload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException Generates a support bundle with selected components from the UI.- Parameters:
req
- The stapler requestrsp
- The stapler response- Throws:
javax.servlet.ServletException
- If an error occurred during form submissionIOException
- If an input or output exception occurs
-
doGenerateAllBundles
public void doGenerateAllBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException Generates a support bundle with selected components from the UI.- Parameters:
req
- The stapler requestrsp
- The stapler response- Throws:
javax.servlet.ServletException
- If an error occurred during form submissionIOException
- If an input or output exception occurs
-
doGenerateBundle
public void doGenerateBundle(@QueryParameter("components") String components, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Generates a support bundle with only requested components.- Parameters:
components
- component names separated by comma.rsp
- The stapler response- Throws:
IOException
- If an input or output exception occurs
-
selectedByDefault
-
SupportPlugin.CREATE_BUNDLE