1 16 package com.google.gwt.http.client; 17 18 28 public final class URL { 29 30 39 public static String decode(String encodedURL) { 40 StringValidator.throwIfNull("encodedURL", encodedURL); 41 return decodeImpl(encodedURL); 42 } 43 44 54 public static String decodeComponent(String encodedURLComponent) { 55 StringValidator.throwIfNull("encodedURLComponent", 56 encodedURLComponent); 57 return decodeComponentImpl(encodedURLComponent); 58 } 59 60 93 public static String encode(String decodedURL) { 94 StringValidator.throwIfNull("decodedURL", decodedURL); 95 return encodeImpl(decodedURL); 96 } 97 98 128 public static String encodeComponent(String decodedURLComponent) { 129 StringValidator.throwIfNull("decodedURLComponent", 130 decodedURLComponent); 131 return encodeComponentImpl(decodedURLComponent); 132 } 133 134 138 private static native String decodeComponentImpl(String encodedURLComponent) ; 142 143 private static native String decodeImpl(String encodedURL) ; 146 147 151 private static native String encodeComponentImpl(String decodedURLComponent) ; 155 156 private static native String encodeImpl(String decodedURL) ; 159 160 private URL() { 161 } 162 } 163 | Popular Tags |