Class GHSubscriberEvent


  • public class GHSubscriberEvent
    extends jenkins.scm.api.SCMEvent<String>
    An event for a GHEventsSubscriber.
    Since:
    1.26.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from class jenkins.scm.api.SCMEvent

        jenkins.scm.api.SCMEvent.Dispatcher<E extends jenkins.scm.api.SCMEvent<?>>, jenkins.scm.api.SCMEvent.EventQueueMetrics, jenkins.scm.api.SCMEvent.Type
    • Field Summary

      • Fields inherited from class jenkins.scm.api.SCMEvent

        ORIGIN_UNKNOWN
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.kohsuke.github.GHEvent getGHEvent()
      Gets the type of event received.
      • Methods inherited from class jenkins.scm.api.SCMEvent

        asCauses, closeExecutorService, description, equals, executorService, getDate, getEventProcessingMetrics, getOrigin, getPayload, getTimestamp, getType, hashCode, originOf, toString
    • Constructor Detail

      • GHSubscriberEvent

        public GHSubscriberEvent​(@CheckForNull
                                 String origin,
                                 @NonNull
                                 org.kohsuke.github.GHEvent ghEvent,
                                 @NonNull
                                 String payload)
        Constructs a new GHSubscriberEvent.
        Parameters:
        origin - the origin (see SCMEvent.originOf(javax.servlet.http.HttpServletRequest)) or null.
        ghEvent - the type of event received from GitHub.
        payload - the event payload.
    • Method Detail

      • getGHEvent

        public org.kohsuke.github.GHEvent getGHEvent()
        Gets the type of event received.
        Returns:
        the type of event received.