We lost this code refactoring UURI:
public class UURI implements Serializable {
// for now, consider URIs too long for IE as illegal
// TODO: move this policy elsewhere
private static int DEFAULT_MAX_URI_LENGTH = 2083;
private static Logger logger =
Logger.getLogger("org.archive.crawler.datamodel.UURI");
protected java.net.URI uri;
protected String uriString;
public static UURI createUURI(String s) throws
URISyntaxException {
return new UURI(normalize(s));
}
/**
* @param u
*/
private UURI(URI u) throws URISyntaxException {
uri = u;
try {
uriString = u.toASCIIString();
} catch (NullPointerException npe) {
throw new
URISyntaxException(u.toString(),"URI.encode NPE");
}
if (uriString.length()>DEFAULT_MAX_URI_LENGTH) {
throw new URISyntaxException(uriString,"Too
Long");
}
}
Put it back.
Michael Stack
uri
1.0.1
Public
|
Date: 2007-03-14 00:15
|
|
Date: 2004-08-25 19:30 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2004-08-25 19:30 | stack-sf |
| resolution_id | None | 2004-08-25 19:30 | stack-sf |
| close_date | - | 2004-08-25 19:30 | stack-sf |
| priority | 5 | 2004-08-23 23:52 | gojomo |
| artifact_group_id | None | 2004-08-19 21:22 | stack-sf |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use