Class UriUtils


  • public class UriUtils
    extends java.lang.Object
    uri util.
    • Constructor Summary

      Constructors 
      Constructor Description
      UriUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String appendScheme​(java.lang.String url, java.lang.String scheme)
      appendScheme.
      static java.net.URI createUri​(java.lang.String uri)
      create URI URI.
      static java.lang.String getPathWithParams​(java.net.URI uri)
      Get the path of uri with parameters.
      static java.lang.String removePrefix​(java.lang.String name)
      Remove prefix string.
      static java.lang.String repairData​(java.lang.String name)
      Repair data string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UriUtils

        public UriUtils()
    • Method Detail

      • createUri

        public static java.net.URI createUri​(java.lang.String uri)
        create URI URI.
        Parameters:
        uri - uri string eg:/fallback
        Returns:
        created URI from uri
      • repairData

        public static java.lang.String repairData​(java.lang.String name)
        Repair data string.
        Parameters:
        name - the name
        Returns:
        the string
      • removePrefix

        public static java.lang.String removePrefix​(java.lang.String name)
        Remove prefix string.
        Parameters:
        name - the name
        Returns:
        the string
      • getPathWithParams

        public static java.lang.String getPathWithParams​(java.net.URI uri)
        Get the path of uri with parameters.
        Parameters:
        uri - the uri.
        Returns:
        absolute uri string with parameters.
      • appendScheme

        public static java.lang.String appendScheme​(java.lang.String url,
                                                    java.lang.String scheme)
        appendScheme.
        Parameters:
        scheme - scheme
        url - url
        Returns:
        String