public BaseResourceImpl( String parentPath, String name, String displayName, Date createDate, Date modifiedDate, long size) { _displayName = displayName; _size = size; String href = HttpUtil.encodePath(parentPath); if (Validator.isNotNull(name)) { href += StringPool.SLASH + URLCodec.encodeURL(name, true); } _href = href; if (createDate == null) { _createDate = new Date(); } else { _createDate = createDate; } if (modifiedDate == null) { _modifiedDate = new Date(); } else { _modifiedDate = modifiedDate; } }