super(httpClient, uri, tokenProvider);
}
public StorageObjectInfo findStorageObjectInfo(String path) throws RestClientException {
HttpRequest request = buildHead(path);
HttpResponse response = null;
try {
response = executeRawRequest(request);
StorageObjectInfo info = new StorageObjectInfo();
{
String header = response.getFirstHeader(HttpHeaders.CONTENT_LENGTH);
if (header != null) {
info.length = Long.valueOf(header);
}
}
{
String header = response.getFirstHeader(HttpHeaders.LAST_MODIFIED);
if (header != null) {
info.lastModified = new Date(header);
}
}