isConnected = false;
}
protected void chDir(ProtocolPath path) throws ProtocolException {
if (!(path instanceof HttpPath))
throw new ProtocolException(
"HttpClient must receive a HttpPath - failed to cd");
HttpPath httpPath = (HttpPath) path;
try {
if (!this
.isDirectory(httpPath.getLink().toString(), path.getPathString()))
throw new ProtocolException(path
+ " is not a directory (mime type must be text/html)");
this.currentPath = httpPath;
} catch (Exception e) {
throw new ProtocolException("Failed to cd to " + path + " : "
+ e.getMessage());
}
}