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

com.hubspot.imap.ProxyConfigIF Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.hubspot.imap;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.google.common.net.HostAndPort;
import java.util.Optional;
import org.immutables.value.Value;

@Value.Immutable
@Value.Style(typeAbstract = { "*IF" }, typeImmutable = "*")
@JsonDeserialize(as = ProxyConfig.class)
@JsonSerialize(as = ProxyConfig.class)
public interface ProxyConfigIF {
  HostAndPort proxyHost();

  @Value.Default
  default Optional proxyLocalIpAddress() {
    return Optional.empty();
  }

  @Value.Default
  default Optional proxyPublicIpAddress() {
    return Optional.empty();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy