Class HookProcessor

    • Constructor Detail

      • HookProcessor

        public HookProcessor()
    • Method Detail

      • process

        public abstract void process​(HookEventType type,
                                     String payload,
                                     BitbucketType instanceType,
                                     String origin)
        See Event Payloads for more information about the payload parameter format.
        Parameters:
        type - the type of hook.
        payload - the hook payload
        instanceType - the Bitbucket type that called the hook
        origin - the origin of the event.
      • process

        public void process​(HookEventType type,
                            String payload,
                            BitbucketType instanceType,
                            String origin,
                            String serverUrl)
        See Event Payloads for more information about the payload parameter format.
        Parameters:
        type - the type of hook.
        payload - the hook payload
        instanceType - the Bitbucket type that called the hook
        origin - the origin of the event.
        serverUrl - special value for native Bitbucket Server hooks which don't expose the server URL in the payload.
      • scmSourceReIndex

        protected void scmSourceReIndex​(String owner,
                                        String repository)
        To be called by implementations once the owner and the repository have been extracted from the payload.
        Parameters:
        owner - the repository owner as configured in the SCMSource
        repository - the repository name as configured in the SCMSource