/** * Decode all of the parts of the url including query and fragment * @param url the url to encode */ public static String unescapeURL(String url) { String newurl = null; newurl = urlDecode(url); return newurl; }
/** * Define the OGC unescape function. * * @param s The string to unescape. b * @return The unescaped string. */ public static String unescapeOGC(String s) { return urlDecode(s); }
/** * Decode all of the parts of the url including query and fragment * * @param url the url to encode */ public static String unescapeURL(String url) { String newurl; newurl = urlDecode(url); return newurl; }
/** * Define the OGC unescape function. * * @param s The string to unescape. b * @return The unescaped string. */ public static String unescapeOGC(String s) { return urlDecode(s); }
/** * Decode all of the parts of the url including query and fragment * @param url the url to encode */ public static String unescapeURL(String url) { String newurl; newurl = urlDecode(url); return newurl; }
static public void showCache(PrintStream pw) { pw.println("Cache files"); pw.println("Size LastModified Filename"); File dir = new File(root); File[] children = dir.listFiles(); if (children == null) return; for (File file : children) { String org = EscapeStrings.urlDecode(file.getName()); pw.println(" " + file.length() + " " + new Date(file.lastModified()) + " " + org); } }
static public void showCache(PrintStream pw) { pw.println("Cache files"); pw.println("Size LastModified Filename"); File dir = new File(root); for (File file : dir.listFiles()) { String org = EscapeStrings.urlDecode(file.getName()); /*try { org = URLDecoder.decode(file.getName(), "UTF8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }*/ pw.println(" " + file.length() + " " + new Date(file.lastModified()) + " " + org); } }
static public void showCache(PrintStream pw) { pw.println("Cache files"); pw.println("Size LastModified Filename"); File dir = new File(root); for (File file : dir.listFiles()) { String org = null; org = EscapeStrings.urlDecode(file.getName()); /*try { org = URLDecoder.decode(file.getName(), "UTF8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }*/ pw.println(" " + file.length() + " " + new Date(file.lastModified()) + " " + org); } }
/** debug */ static void make(DiskCache2 dc, String filename) throws IOException { File want = dc.getCacheFile(filename); System.out.println("make=" + want.getPath() + "; exists = " + want.exists()); if (!want.exists()) want.createNewFile(); System.out.println(" canRead= " + want.canRead() + " canWrite = " + canWrite(want) + " lastMod = " + new Date(want.lastModified())); System.out.println(" original=" + EscapeStrings.urlDecode(filename)); }
log.ip = m2.group(1); log.verb = m2.group(2).intern(); log.path = EscapeStrings.urlDecode(m2.group(3)); //old URLDecoder.decode(m2.group(3)); if (m2.groupCount() > 4) log.http = m2.group(4).intern();