Class GHHook


public abstract class GHHook extends GHObject
The type GHHook.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • GHHook

      public GHHook()
  • Method Details

    • getName

      public String getName()
      Gets name.
      Returns:
      the name
    • getEvents

      public EnumSet<GHEvent> getEvents()
      Gets events.
      Returns:
      the events
    • isActive

      public boolean isActive()
      Is active boolean.
      Returns:
      the boolean
    • getConfig

      public Map<String,String> getConfig()
      Gets config.
      Returns:
      the config
    • ping

      public void ping() throws IOException
      Ping.
      Throws:
      IOException - the io exception
      See Also:
    • delete

      public void delete() throws IOException
      Deletes this hook.
      Throws:
      IOException - the io exception
    • getHtmlUrl

      public URL getHtmlUrl()
      Deprecated.
      This object has no HTML URL.
      Gets the html url.
      Specified by:
      getHtmlUrl in class GHObject
      Returns:
      the html url
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance