Package be.personify.util.http
Class HttpUtil
java.lang.Object
be.personify.util.http.HttpUtil
Utility class for http stuff
- Author:
- vanderw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdetectServerName(jakarta.servlet.http.HttpServletRequest httpServletRequest) static StringextractServerNameFromForwardedFor(String forwardedFor) getClientIpAddress(jakarta.servlet.http.HttpServletRequest request) static StringgetFullURL(jakarta.servlet.http.HttpServletRequest request) Gets the full urlstatic booleanisMultipart(jakarta.servlet.http.HttpServletRequest request) Detects if a request is multipart
-
Constructor Details
-
HttpUtil
public HttpUtil()
-
-
Method Details
-
getFullURL
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
-
extractServerNameFromForwardedFor
-
getClientIpAddress
-