microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java
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;
    }
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;
    }
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.

@param request
the request to get attributes from
@param usePathStyleUris
a value indicating if the account is using pathSytleUris
@return the FileShareAttributes from the given request.
@throws StorageException
Gets the FileShareAttributes from the given request .