Package io.jenkins.plugins.harbor.action
Class HarborWebHookAction
java.lang.Object
hudson.security.csrf.CrumbExclusion
io.jenkins.plugins.harbor.action.HarborWebHookAction
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction,UnprotectedRootAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Consumer<HarborWebhookEvent> harborWebhookEventConsumer) voiddoIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Harbor WebHook APIstatic HarborWebHookActionget()static com.github.benmanes.caffeine.cache.Cache<String,HarborWebhookEvent> getWebhookEventForDigest(String digest) booleanprocess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) voidremoveListener(Consumer<HarborWebhookEvent> harborWebhookEventConsumer) Methods inherited from class hudson.security.csrf.CrumbExclusion
all, process
-
Constructor Details
-
HarborWebHookAction
public HarborWebHookAction()
-
-
Method Details
-
get
-
getEventCache
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException Harbor WebHook API- Parameters:
req- StaplerRequestrsp- StaplerResponse- Throws:
IOException- Invalid JSON Payload- See Also:
-
addListener
-
removeListener
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
process
public boolean process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Overrides:
processin classCrumbExclusion- Throws:
IOExceptionjavax.servlet.ServletException
-
getWebhookEventForDigest
-