Class BitbucketSCMSourcePushHookReceiver
- java.lang.Object
-
- hudson.security.csrf.CrumbExclusion
-
- com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
,UnprotectedRootAction
@Extension public class BitbucketSCMSourcePushHookReceiver extends CrumbExclusion implements UnprotectedRootAction
Process Bitbucket push and pull requests creations/updates hooks.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BitbucketSCMSourcePushHookReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doNotify(org.kohsuke.stapler.StaplerRequest req)
Receives Bitbucket push notifications.String
getDisplayName()
String
getIconFileName()
String
getUrlName()
boolean
process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.FilterChain chain)
-
Methods inherited from class hudson.security.csrf.CrumbExclusion
all
-
-
-
-
Field Detail
-
FULL_PATH
public static final String FULL_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public boolean process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
process
in classCrumbExclusion
- Throws:
IOException
javax.servlet.ServletException
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
doNotify
public org.kohsuke.stapler.HttpResponse doNotify(org.kohsuke.stapler.StaplerRequest req) throws IOException
Receives Bitbucket push notifications.- Parameters:
req
- Stapler request. It contains the payload in the body content and a header param "X-Event-Key" pointing to the event type.- Returns:
- the HTTP response object
- Throws:
IOException
- if there is any issue reading the HTTP content payload.
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
-