Package org.kohsuke.github
Class GHHook
java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHHook
The type GHHook.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deletes this hook.Gets config.Gets events.Deprecated.This object has no HTML URL.getName()
Gets name.getRoot()
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.boolean
isActive()
Is active boolean.void
ping()
Ping.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHHook
public GHHook()
-
-
Method Details
-
getName
Gets name.- Returns:
- the name
-
getEvents
Gets events.- Returns:
- the events
-
isActive
public boolean isActive()Is active boolean.- Returns:
- the boolean
-
getConfig
Gets config.- Returns:
- the config
-
ping
Ping.- Throws:
IOException
- the io exception- See Also:
-
delete
Deletes this hook.- Throws:
IOException
- the io exception
-
getHtmlUrl
Deprecated.This object has no HTML URL.Gets the html url.- Specified by:
getHtmlUrl
in classGHObject
- Returns:
- the html url
-
getRoot
Deprecated.For access to theGitHub
instance, use a local copy instead of pulling it out of objects.Get the rootGitHub
instance for this object.- Returns:
- the root
GitHub
instance
-