Class HttpUtil

java.lang.Object
be.personify.util.http.HttpUtil

public class HttpUtil extends Object
Utility class for http stuff
Author:
vanderw
  • Constructor Details

    • HttpUtil

      public HttpUtil()
  • Method Details

    • getFullURL

      public static String getFullURL(jakarta.servlet.http.HttpServletRequest request)
      Gets the full url
      Parameters:
      request - the HttpServletRequest
      Returns:
      the string containing the full url
    • isMultipart

      public static boolean isMultipart(jakarta.servlet.http.HttpServletRequest request)
      Detects if a request is multipart
      Parameters:
      request - the HttpServletRequest
      Returns:
      a boolean indicating if it is multipart
    • detectServerName

      public static String detectServerName(jakarta.servlet.http.HttpServletRequest httpServletRequest)
    • extractServerNameFromForwardedFor

      public static String extractServerNameFromForwardedFor(String forwardedFor)
    • getClientIpAddress

      public String getClientIpAddress(jakarta.servlet.http.HttpServletRequest request)