public abstract class JSONWebHook extends Object implements UnprotectedRootAction
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
JSONWebHook() |
Modifier and Type | Method and Description |
---|---|
protected abstract WebHookPayload |
createPushNotification(net.sf.json.JSONObject data) |
void |
doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
If someone wanders in to the index page, redirect to Jenkins root.
|
void |
doNotify(String payload,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response) |
ResultPage |
getDetails(String sha)
Stapler entry for the multi build result page
|
String |
getDisplayName() |
String |
getIconFileName() |
protected void |
trigger(org.kohsuke.stapler.StaplerResponse response,
PushNotification pushNotification) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUrlName
public String getIconFileName()
getIconFileName
in interface Action
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public void doNotify(@QueryParameter(required=false) String payload, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
IOException
@Nonnull public ResultPage getDetails(@Nonnull String sha) throws IOException, InterruptedException
sha
- the id of the trigger data.IOException
- if soInterruptedException
- if soprotected void trigger(org.kohsuke.stapler.StaplerResponse response, PushNotification pushNotification) throws IOException
IOException
public void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException
request
- the request objectresponse
- the response objectIOException
- if soprotected abstract WebHookPayload createPushNotification(net.sf.json.JSONObject data)
Copyright © 2016–2022. All rights reserved.