Class IpInfo


  • public class IpInfo
    extends Object
    The Class IpInfo.
    • Field Detail

      • address

        private String address
        The address.
      • forwarded

        private boolean forwarded
        The forwarded.
    • Constructor Detail

      • IpInfo

        public IpInfo()
    • Method Detail

      • builder

        public IpInfo builder​(javax.servlet.http.HttpServletRequest request)
        Instantiates a new ip info.
        Parameters:
        request - the request
        Returns:
        the ip info
      • isForwarded

        public boolean isForwarded()
        Checks if is forwarded.
        Returns:
        true, if is forwarded
      • setForwarded

        public void setForwarded​(boolean forwarded)
        Sets the forwarded.
        Parameters:
        forwarded - the new forwarded
      • getAddress

        public String getAddress()
        Gets the address.
        Returns:
        the address
      • setAddress

        public void setAddress​(String address)
        Sets the address.
        Parameters:
        address - the new address
      • getClientAddress

        public static String getClientAddress​(javax.servlet.http.HttpServletRequest request)
        Gets the client address.
        Parameters:
        request - the request
        Returns:
        the client address