private void setProperties(String currentNode, String value) throws ParseException { // Called in both the file and the directory case. if (Constants.LAST_MODIFIED_ELEMENT.equals(currentNode)) { this.directoryProperties.setLastModified(Utility.parseRFC1123DateFromStringInGMT(value)); } else if (Constants.ETAG_ELEMENT.equals(currentNode)) { this.directoryProperties.setEtag(Utility.formatETag(value)); } else if (Constants.HeaderConstants.CONTENT_LENGTH.equals(currentNode)) { this.fileProperties.setLength(Long.parseLong(value)); } } }
private void setProperties(String currentNode, String value) throws ParseException { // Called in both the file and the directory case. if (Constants.LAST_MODIFIED_ELEMENT.equals(currentNode)) { this.directoryProperties.setLastModified(Utility.parseRFC1123DateFromStringInGMT(value)); } else if (Constants.ETAG_ELEMENT.equals(currentNode)) { this.directoryProperties.setEtag(Utility.formatETag(value)); } else if (Constants.HeaderConstants.CONTENT_LENGTH.equals(currentNode)) { this.fileProperties.setLength(Long.parseLong(value)); } } }
private void getProperties(String currentNode, String value) throws ParseException { if (currentNode.equals(Constants.LAST_MODIFIED_ELEMENT)) { this.attributes.getProperties().setLastModified(Utility.parseRFC1123DateFromStringInGMT(value)); } else if (currentNode.equals(Constants.ETAG_ELEMENT)) { this.attributes.getProperties().setEtag(Utility.formatETag(value)); } else if (currentNode.equals(FileConstants.SHARE_QUOTA_ELEMENT)) { this.attributes.getProperties().setShareQuota(Utility.isNullOrEmpty(value) ? null : Integer.parseInt(value)); } } }
private void getProperties(String currentNode, String value) throws ParseException { if (currentNode.equals(Constants.LAST_MODIFIED_ELEMENT)) { this.attributes.getProperties().setLastModified(Utility.parseRFC1123DateFromStringInGMT(value)); } else if (currentNode.equals(Constants.ETAG_ELEMENT)) { this.attributes.getProperties().setEtag(Utility.formatETag(value)); } else if (currentNode.equals(FileConstants.SHARE_QUOTA_ELEMENT)) { this.attributes.getProperties().setShareQuota(Utility.isNullOrEmpty(value) ? null : Integer.parseInt(value)); } } }
this.attributes.getProperties().setEtag(Utility.formatETag(value));
this.attributes.getProperties().setEtag(Utility.formatETag(value));
this.properties.setEtag(Utility.formatETag(value));
this.properties.setEtag(Utility.formatETag(value));