//
// ========================================================================
-// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+// Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
}
}
- return newResource(url);
+ return newResource(url, useCaches);
}
/* ------------------------------------------------------------ */
/**
* Returns an URL representing the given resource
*/
+ // TODO: should deprecate this one and only use getURI()
public abstract URL getURL();
/* ------------------------------------------------------------ */
/**
* Deletes the given resource
*/
+ // TODO: can throw IOException
public abstract boolean delete()
throws SecurityException;
/**
* Rename the given resource
*/
+ // TODO: can throw IOException
public abstract boolean renameTo( Resource dest)
throws SecurityException;
* Returns a list of resource names contained in the given resource
* The resource names are not URL encoded.
*/
+ // TODO: can throw IOException
public abstract String[] list();
/* ------------------------------------------------------------ */
buf.append("</TD></TR>");
}
buf.append("</TABLE>\n");
- buf.append("</BODY></HTML>\n");
+ buf.append("</BODY></HTML>\n");
return buf.toString();
}
private static String deTag(String raw)
{
- return StringUtil.replace( StringUtil.replace(raw,"<","<"), ">", ">");
+ return StringUtil.sanitizeXmlString(raw);
}
/* ------------------------------------------------------------ */