Package com.yahoo.net

Class UriTools


  • public final class UriTools
    extends java.lang.Object
    Utility methods for working with URIs.
    Author:
    Steinar Knutsen
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String rawRequest​(java.net.URI uri)
      Build a string representation of the normalized form of the given URI, containg the path and optionally query and fragment parts.
      • Methods inherited from class java.lang.Object

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

      • rawRequest

        public static java.lang.String rawRequest​(java.net.URI uri)
        Build a string representation of the normalized form of the given URI, containg the path and optionally query and fragment parts. The query part will be delimeted from the preceding data with "?" and the fragment with "#".
        Parameters:
        uri - source for path, query and fragment in returned data
        Returns:
        a string containing path, and optionally query and fragment, delimited by question mark and hash