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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(Consumer<HarborWebhookEvent> harborWebhookEventConsumer) void
doIndex
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Harbor WebHook APIstatic HarborWebHookAction
get()
static com.github.benmanes.caffeine.cache.Cache<String,
HarborWebhookEvent> getWebhookEventForDigest
(String digest) boolean
process
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) void
removeListener
(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:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in 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:
process
in classCrumbExclusion
- Throws:
IOException
javax.servlet.ServletException
-
getWebhookEventForDigest
-