jenkins.plugins.jobicon
Class CustomIconAction
java.lang.Object
jenkins.plugins.jobicon.CustomIconAction
- All Implemented Interfaces:
- hudson.model.Action, hudson.model.ModelObject
public class CustomIconAction
- extends Object
- implements hudson.model.Action
This action add /customIcon/
to the job URL space and serve the
icon image.
This action accepts the query parameter size
with these
acceptable values 16x16
, 24x24
and 32x32
. If this
query parameter is present the icon image is resized before being served.
- Author:
- Jean-Christophe Sirot
Constructor Summary |
CustomIconAction(hudson.model.Job job)
Creates a new CustomIconAction . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomIconAction
public CustomIconAction(hudson.model.Job job)
- Creates a new
CustomIconAction
.
- Parameters:
job
- the owner job
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interface hudson.model.Action
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interface hudson.model.Action
- Specified by:
getDisplayName
in interface hudson.model.ModelObject
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interface hudson.model.Action
doDynamic
public void doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
InterruptedException
- Handles the action call.
- Parameters:
req
- the stapler requestrsp
- the stapler response
- Throws:
IOException
javax.servlet.ServletException
InterruptedException
Copyright © 2004-2012. All Rights Reserved.