@Extension public class GogsWebHook extends Object implements hudson.model.UnprotectedRootAction
| Constructor and Description |
|---|
GogsWebHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
doIndex(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Receives the HTTP POST request send by Gogs.
|
static String |
encode(String data,
String key)
encode sha256 hmac
|
String |
getDisplayName() |
String |
getIconFileName() |
String |
getUrlName() |
public String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic static String encode(String data, String key) throws Exception
data - data to hexkey - key of HmacSHA256Exceptionpublic void doIndex(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - requestrsp - responseIOException - problem while parsingCopyright © 2016–2017. All rights reserved.