Class JiraIpAddressProviderImpl

java.lang.Object
com.atlassian.jira.auditing.spis.service.JiraIpAddressProviderImpl
All Implemented Interfaces:
com.atlassian.audit.core.spi.service.IpAddressProvider

public class JiraIpAddressProviderImpl extends Object implements com.atlassian.audit.core.spi.service.IpAddressProvider
Fault tolerant implementation of IpAddressProvider that supports atlassian-audit-plugin.
  • Constructor Details

    • JiraIpAddressProviderImpl

      public JiraIpAddressProviderImpl(com.atlassian.sal.api.web.context.HttpContext httpContext)
  • Method Details

    • currentIpAddress

      @Nullable public String currentIpAddress()
      Specified by:
      currentIpAddress in interface com.atlassian.audit.core.spi.service.IpAddressProvider
    • remoteIpAddress

      @Nullable public String remoteIpAddress()
      Specified by:
      remoteIpAddress in interface com.atlassian.audit.core.spi.service.IpAddressProvider
    • forwarderIpAddress

      @Nonnull public Optional<String> forwarderIpAddress()
      Specified by:
      forwarderIpAddress in interface com.atlassian.audit.core.spi.service.IpAddressProvider