All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.securecodebox.persistence.defectdojo.model.Endpoint Maven / Gradle / Ivy

The newest version!
// SPDX-FileCopyrightText: the secureCodeBox authors
//
// SPDX-License-Identifier: Apache-2.0

package io.securecodebox.persistence.defectdojo.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
public final class Endpoint implements Model, HasId {
  @JsonProperty
  private long id;

  @JsonProperty
  private String protocol;

  @JsonProperty
  private String host;

  @JsonProperty("fqdm")
  private String fullyQualifiedDomainName;

  @JsonProperty
  private long port;

  @JsonProperty
  private String path;

  @JsonProperty
  private String query;

  @JsonProperty
  private String fragment;

  @JsonProperty
  private long product;

  @JsonProperty
  private boolean mitigated;

  @Override
  public boolean equalsQueryString(Map queryParams) {
    if (QueryParamsComparator.isNull(queryParams)) {
      return false;
    }

    return QueryParamsComparator.isIdEqual(this, queryParams);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy