com.glookast.commons.capture.NotificationEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-capture Show documentation
Show all versions of commons-capture Show documentation
Helper classes with Jackson annotations for easy interfacing with Glookast Products
package com.glookast.commons.capture;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.net.URL;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.UUID;
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = NotificationEndpoint.class)
public class NotificationEndpoint
{
protected UUID id;
protected URL url;
protected Map filter;
public NotificationEndpoint(NotificationEndpoint notificationEndpoint)
{
id = notificationEndpoint.id;
url = notificationEndpoint.url;
filter = notificationEndpoint.filter != null ? new LinkedHashMap<>(notificationEndpoint.filter) : null;
}
}