public static FileShareAttributes getFileShareAttributes ( final HttpURLConnection request , final boolean usePathStyleUris ) throws StorageException { final FileShareAttributes shareAttributes = new FileShareAttributes ( ) ; final FileShareProperties shareProperties = shareAttributes . getProperties ( ) ; shareProperties . setEtag ( BaseResponse . getEtag ( request ) ) ; shareProperties . setShareQuota ( parseShareQuota ( request ) ) ; shareProperties . setLastModified ( new Date ( request . getLastModified ( ) ) ) ; shareAttributes . setMetadata ( getMetadata ( request ) ) ; return shareAttributes ; }
Gets the FileShareAttributes from the given request .