41424344454647
uri = url.toURI(); } catch (URISyntaxException e) { throw UncheckedException.throwAsUncheckedException(e); } metaData = new DefaultExternalResourceMetaData(uri, connection.getLastModified(), connection.getContentLength(), null, null); }
62636465666768
} if ((attributes.getFlags() & SftpATTRS.SSH_FILEXFER_ATTR_SIZE) != 0) { contentLength = attributes.getSize(); } return new DefaultExternalResourceMetaData(uri, lastModified, contentLength, null, null); }
636465666768697071
return new FileInputStream(localFile); } public ExternalResourceMetaData getMetaData() { if (metaData == null) { metaData = new DefaultExternalResourceMetaData(source, getLastModifiedTime(), getContentLength(), null, null); } return metaData; }
44454647484950
this.method = method; this.source = source; this.response = response; String etag = getEtag(response); this.metaData = new DefaultExternalResourceMetaData(source, getLastModified(), getContentLength(), etag, getSha1(response, etag)); }