|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.naming.directory.BasicAttributes | +--org.apache.naming.resources.ResourceAttributes
Attributes implementation.
Field Summary | |
static java.lang.String |
ALTERNATE_CONTENT_LENGTH
Content length. |
static java.lang.String |
ALTERNATE_CREATION_DATE
Creation date. |
static java.lang.String |
ALTERNATE_LAST_MODIFIED
Last modification date. |
static java.lang.String |
ALTERNATE_TYPE
Type. |
static java.lang.String |
COLLECTION_TYPE
Collection type. |
static java.lang.String |
CONTENT_LANGUAGE
Content language. |
static java.lang.String |
CONTENT_LENGTH
Content length. |
static java.lang.String |
CONTENT_TYPE
MIME type of the content. |
static java.lang.String |
CREATION_DATE
Creation date. |
static java.lang.String |
ETAG
ETag. |
protected static java.text.SimpleDateFormat |
format
HTTP date format. |
protected static java.text.SimpleDateFormat[] |
formats
Date formats using for Date parsing. |
static java.lang.String |
LAST_MODIFIED
Last modification date. |
static java.lang.String |
NAME
Name. |
protected java.util.Hashtable |
protectedAttributes
Protected attributes. |
static java.lang.String |
SOURCE
Source. |
static java.lang.String |
TYPE
Type. |
Constructor Summary | |
ResourceAttributes()
Default constructor. |
|
ResourceAttributes(javax.naming.directory.Attributes attributes)
Merges with another attribute set. |
Method Summary | |
javax.naming.directory.Attribute |
get(java.lang.String attrID)
Get attribute. |
javax.naming.NamingEnumeration |
getAll()
Get all attributes. |
long |
getContentLength()
Content length accessor. |
java.util.Date |
getCreationDate()
Creation date accessor. |
javax.naming.NamingEnumeration |
getIDs()
Get all attribute IDs. |
java.util.Date |
getLastModified()
Last modified date accessor. |
java.lang.String |
getName()
Name accessor. |
protected javax.naming.directory.Attribute |
getProtectedAttribute(java.lang.String name)
Protected attribute accessor. |
java.lang.String |
getResourceType()
Resource type accessor. |
protected void |
intializeAttributes()
Initialize the set of protected attributes. |
boolean |
isCollection()
Is collection. |
void |
setContentLength(long contentLength)
Content length mutator. |
void |
setCreationDate(java.util.Date creationDate)
Creation date mutator. |
void |
setLastModified(java.util.Date lastModified)
Last modified mutator. |
void |
setName(java.lang.String name)
Name mutator. |
protected void |
setProtectedAttribute(java.lang.String name,
java.lang.Object value)
Protected attribute mutator. |
void |
setResourceType(java.lang.String resourceType)
Type mutator. |
int |
size()
Retrieves the number of attributes in the attribute set. |
java.lang.String |
toString()
Generates the string representation of this attribute set. |
Methods inherited from class javax.naming.directory.BasicAttributes |
clone, equals, hashCode, isCaseIgnored, put, put, remove |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CREATION_DATE
public static final java.lang.String ALTERNATE_CREATION_DATE
public static final java.lang.String LAST_MODIFIED
public static final java.lang.String ALTERNATE_LAST_MODIFIED
public static final java.lang.String NAME
public static final java.lang.String TYPE
public static final java.lang.String ALTERNATE_TYPE
public static final java.lang.String SOURCE
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String CONTENT_LANGUAGE
public static final java.lang.String CONTENT_LENGTH
public static final java.lang.String ALTERNATE_CONTENT_LENGTH
public static final java.lang.String ETAG
public static final java.lang.String COLLECTION_TYPE
protected static final java.text.SimpleDateFormat format
protected static final java.text.SimpleDateFormat[] formats
protected java.util.Hashtable protectedAttributes
Constructor Detail |
public ResourceAttributes()
public ResourceAttributes(javax.naming.directory.Attributes attributes)
Method Detail |
public java.util.Date getCreationDate()
public java.util.Date getLastModified()
public long getContentLength()
public boolean isCollection()
public java.lang.String getName()
public java.lang.String getResourceType()
public javax.naming.directory.Attribute get(java.lang.String attrID)
get
in class javax.naming.directory.BasicAttributes
public javax.naming.NamingEnumeration getAll()
getAll
in class javax.naming.directory.BasicAttributes
public javax.naming.NamingEnumeration getIDs()
getIDs
in class javax.naming.directory.BasicAttributes
public int size()
size
in class javax.naming.directory.BasicAttributes
public java.lang.String toString()
toString
in class javax.naming.directory.BasicAttributes
public void setCreationDate(java.util.Date creationDate)
creationDate
- New creation datepublic void setLastModified(java.util.Date lastModified)
lastModified
- New last modified datepublic void setContentLength(long contentLength)
contentLength
- New content lengthpublic void setName(java.lang.String name)
name
- New namepublic void setResourceType(java.lang.String resourceType)
resourceType
- New resource typeprotected void setProtectedAttribute(java.lang.String name, java.lang.Object value)
name
- Attribute namevalue
- Attribute valueprotected javax.naming.directory.Attribute getProtectedAttribute(java.lang.String name)
name
- Attribute nameprotected void intializeAttributes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |