Class Util
- java.lang.Object
-
- org.gcube.datatransfer.resolver.util.Util
-
public class Util extends Object
The Class Util.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Nov 30, 2018
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetContextURL(javax.servlet.http.HttpServletRequest req)Gets the server url.static StringgetFullURL(javax.servlet.http.HttpServletRequest request)Gets the full url.static StringgetServerURL(javax.servlet.http.HttpServletRequest req)Gets the server url.static StringremoveLastChar(String string)Removes the last char.static StringtoQueryString(javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)To query string.
-
-
-
Method Detail
-
getFullURL
public static String getFullURL(javax.servlet.http.HttpServletRequest request)
Gets the full url.- Parameters:
request- the request- Returns:
- the full url
-
getServerURL
public static String getServerURL(javax.servlet.http.HttpServletRequest req)
Gets the server url.- Parameters:
req- the req- Returns:
- the server url
-
getContextURL
public static String getContextURL(javax.servlet.http.HttpServletRequest req)
Gets the server url.- Parameters:
req- the req- Returns:
- the server url
-
removeLastChar
public static String removeLastChar(String string)
Removes the last char.- Parameters:
string- the string- Returns:
- the string
-
-