Class WebHookPayload
- java.lang.Object
-
- org.jenkinsci.plugins.registry.notification.webhook.WebHookPayload
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ACRWebHookPayload
,DockerHubWebHookPayload
,DockerRegistryWebHookPayload
public abstract class WebHookPayload extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREFIX
protected List<PushNotification>
pushNotifications
protected long
received
-
Constructor Summary
Constructors Constructor Description WebHookPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
net.sf.json.JSONObject
getData()
List<PushNotification>
getPushNotifications()
long
getReceived()
System.currentTimeMillis()
when this object's constructor was called.int
hashCode()
protected Object
readResolve()
protected void
setData(net.sf.json.JSONObject data)
protected void
setJson(String json)
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
received
protected final long received
-
pushNotifications
protected List<PushNotification> pushNotifications
-
-
Method Detail
-
getReceived
public long getReceived()
System.currentTimeMillis()
when this object's constructor was called.- Returns:
- the object's creation time/when the payload was received.
-
getPushNotifications
public List<PushNotification> getPushNotifications()
-
getData
@CheckForNull public net.sf.json.JSONObject getData()
-
setData
protected void setData(net.sf.json.JSONObject data)
-
setJson
protected void setJson(String json)
-
readResolve
protected Object readResolve()
-
-