Class Util


  • public class Util
    extends Object
    The Class Util.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Nov 30, 2018
    • Constructor Detail

      • Util

        public Util()
    • 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
      • toQueryString

        public static String toQueryString​(javax.ws.rs.core.MultivaluedMap<String,​String> queryParameters)
        To query string.
        Parameters:
        queryParameters - the query parameters
        Returns:
        the string