private synchronized void doOptions(String url) throws NotFoundException, java.net.ConnectException, Unauthorized, java.net.UnknownHostException, SocketTimeoutException, IOException, com.ettrema.httpclient.HttpException {
notifyStartRequest();
String uri = urlEncode(url);
log.trace("doOptions: {}", url);
OptionsMethod m = new OptionsMethod(uri);
InputStream in = null;
try {
int res = client.executeMethod(m);
log.trace("result code: " + res);
if (res == 301 || res == 302) {
return;
}
Utils.processResultCode(res, url);
} finally {
Utils.close(in);
m.releaseConnection();
notifyFinishRequest();
}
}