Attributes implementation.
ALTERNATE_CONTENT_LENGTH
public static final String ALTERNATE_CONTENT_LENGTH
Content length.
ALTERNATE_CREATION_DATE
public static final String ALTERNATE_CREATION_DATE
Creation date.
ALTERNATE_LAST_MODIFIED
public static final String ALTERNATE_LAST_MODIFIED
Last modification date.
ALTERNATE_TYPE
public static final String ALTERNATE_TYPE
Type.
COLLECTION_TYPE
public static final String COLLECTION_TYPE
Collection type.
CONTENT_LANGUAGE
public static final String CONTENT_LANGUAGE
Content language.
CONTENT_LENGTH
public static final String CONTENT_LENGTH
Content length.
CONTENT_TYPE
public static final String CONTENT_TYPE
MIME type of the content.
CREATION_DATE
public static final String CREATION_DATE
Creation date.
ETAG
public static final String ETAG
ETag.
LAST_MODIFIED
public static final String LAST_MODIFIED
Last modification date.
NAME
public static final String NAME
Name.
SOURCE
public static final String SOURCE
Source.
TYPE
public static final String TYPE
Type.
attributes
protected Attributes attributes
External attributes.
collection
protected boolean collection
Collection flag.
contentLength
protected long contentLength
Content length.
creation
protected long creation
Creation time.
creationDate
protected Date creationDate
Creation date.
format
protected static final SimpleDateFormat format
HTTP date format.
formats
protected static final SimpleDateFormat[] formats
Date formats using for Date parsing.
lastModified
protected long lastModified
Last modified time.
lastModifiedDate
protected Date lastModifiedDate
Last modified date.
name
protected String name
Name.
strongETag
protected String strongETag
Strong ETag.
weakETag
protected String weakETag
Weak ETag.
clone
public Object clone()
Clone the attributes object (WARNING: fake cloning).
get
public Attribute get(String attrID)
Get attribute.
getAll
public NamingEnumeration getAll()
Get all attributes.
getContentLength
public long getContentLength()
Get content length.
- content length value
getCreation
public long getCreation()
Get creation time.
- creation time value
getCreationDate
public Date getCreationDate()
Get creation date.
- Creation date value
getETag
public String getETag()
Get ETag.
- Weak ETag
getETag
public String getETag(boolean strong)
Get ETag.
strong
- If true, the strong ETag will be returned
- ETag
getIDs
public NamingEnumeration getIDs()
Get all attribute IDs.
getLastModified
public long getLastModified()
Get last modified time.
- lastModified time value
getLastModifiedDate
public Date getLastModifiedDate()
Get lastModified date.
- LastModified date value
getName
public String getName()
Get name.
- Name value
getResourceType
public String getResourceType()
Get resource type.
- String resource type
isCaseIgnored
public boolean isCaseIgnored()
Case sensitivity.
isCollection
public boolean isCollection()
Is collection.
put
public Attribute put(Attribute attribute)
Put attribute.
put
public Attribute put(String attrID,
Object val)
Put attribute.
remove
public Attribute remove(String attrID)
Remove attribute.
setCollection
public void setCollection(boolean collection)
Set collection flag.
setContentLength
public void setContentLength(long contentLength)
Set content length.
contentLength
- New content length value
setCreation
public void setCreation(long creation)
Set creation.
creation
- New creation value
setCreationDate
public void setCreationDate(Date creationDate)
Creation date mutator.
creationDate
- New creation date
setETag
public void setETag(String eTag)
Set strong ETag.
setLastModified
public void setLastModified(Date lastModified)
Set last modified date.
lastModified
- New last modified date value
setLastModified
public void setLastModified(long lastModified)
Set last modified.
lastModified
- New last modified value
setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)
Last modified date mutator.
lastModifiedDate
- New last modified date
setName
public void setName(String name)
Set name.
name
- New name value
setResourceType
public void setResourceType(String resourceType)
Type mutator.
resourceType
- New resource type
size
public int size()
Retrieves the number of attributes in the attribute set.