public static String toRawString ( final URI uri , final boolean strict ) throws NormalizationException { final StringBuffer sb = new StringBuffer ( getScheme ( uri ) ) . append ( "://" ) ; if ( hasUserInfo ( uri ) ) { sb . append ( getRawUserInfo ( uri ) ) . append ( ' ' ) ; } sb . append ( getHost ( uri ) ) . append ( ' ' ) . append ( getPort ( uri ) ) . append ( getRawPath ( uri , strict ) ) ; if ( hasQuery ( uri ) ) { sb . append ( ' ' ) . append ( getRawQuery ( uri , strict ) ) ; } if ( hasFragment ( uri ) ) { sb . append ( ' ' ) . append ( getRawFragment ( uri , strict ) ) ; } return sb . toString ( ) ; }
Returns the entire URL as a string with its raw components normalized