|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.naming.resources.ResourceAttributes
public class ResourceAttributes
Attributes implementation.
Field Summary | |
---|---|
static String |
ALTERNATE_CONTENT_LENGTH
Content length. |
static String |
ALTERNATE_CREATION_DATE
Creation date. |
static String |
ALTERNATE_ETAG
ETag. |
static String |
ALTERNATE_LAST_MODIFIED
Last modification date. |
static String |
ALTERNATE_TYPE
Type. |
protected Attributes |
attributes
External attributes. |
protected boolean |
collection
Collection flag. |
static String |
COLLECTION_TYPE
Collection type. |
static String |
CONTENT_LENGTH
Content length. |
static String |
CONTENT_TYPE
MIME type of the content. |
protected long |
contentLength
Content length. |
protected long |
creation
Creation time. |
static String |
CREATION_DATE
Creation date. |
protected Date |
creationDate
Creation date. |
static String |
ETAG
ETag. |
protected static SimpleDateFormat |
format
HTTP date format. |
protected static SimpleDateFormat[] |
formats
Date formats using for Date parsing. |
protected static TimeZone |
gmtZone
|
static String |
LAST_MODIFIED
Last modification date. |
protected long |
lastModified
Last modified time. |
protected Date |
lastModifiedDate
Last modified date. |
protected String |
lastModifiedHttp
Last modified date in HTTP format. |
protected String |
mimeType
MIME type. |
protected String |
name
Name. |
static String |
NAME
Name. |
protected String |
strongETag
Strong ETag. |
static String |
TYPE
Type. |
protected String |
weakETag
Weak ETag. |
Constructor Summary | |
---|---|
ResourceAttributes()
Default constructor. |
|
ResourceAttributes(Attributes attributes)
Merges with another attribute set. |
Method Summary | |
---|---|
Object |
clone()
Clone the attributes object (WARNING: fake cloning). |
Attribute |
get(String attrID)
Get attribute. |
NamingEnumeration<? extends Attribute> |
getAll()
Get all attributes. |
String |
getCanonicalPath()
Return the canonical path of the resource, to possibly be used for direct file serving. |
long |
getContentLength()
Get content length. |
long |
getCreation()
Get creation time. |
Date |
getCreationDate()
Get creation date. |
String |
getETag()
Get ETag. |
NamingEnumeration<String> |
getIDs()
Get all attribute IDs. |
long |
getLastModified()
Get last modified time. |
Date |
getLastModifiedDate()
Get lastModified date. |
String |
getLastModifiedHttp()
|
String |
getMimeType()
|
String |
getName()
Get name. |
String |
getResourceType()
Get resource type. |
boolean |
isCaseIgnored()
Case sensitivity. |
boolean |
isCollection()
Is collection. |
Attribute |
put(Attribute attribute)
Put attribute. |
Attribute |
put(String attrID,
Object val)
Put attribute. |
Attribute |
remove(String attrID)
Remove attribute. |
void |
setCollection(boolean collection)
Set collection flag. |
void |
setContentLength(long contentLength)
Set content length. |
void |
setCreation(long creation)
Deprecated. - unused |
void |
setCreationDate(Date creationDate)
Creation date mutator. |
void |
setETag(String eTag)
Set strong ETag. |
void |
setLastModified(long lastModified)
Set last modified. |
void |
setLastModifiedDate(Date lastModifiedDate)
Deprecated. - unused |
void |
setLastModifiedHttp(String lastModifiedHttp)
Deprecated. - unused |
void |
setMimeType(String mimeType)
|
void |
setName(String name)
Set name. |
void |
setResourceType(String resourceType)
Type mutator. |
int |
size()
Retrieves the number of attributes in the attribute set. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CREATION_DATE
public static final String ALTERNATE_CREATION_DATE
public static final String LAST_MODIFIED
public static final String ALTERNATE_LAST_MODIFIED
public static final String NAME
public static final String TYPE
public static final String ALTERNATE_TYPE
public static final String CONTENT_TYPE
public static final String CONTENT_LENGTH
public static final String ALTERNATE_CONTENT_LENGTH
public static final String ETAG
public static final String ALTERNATE_ETAG
public static final String COLLECTION_TYPE
protected static final SimpleDateFormat format
protected static final SimpleDateFormat[] formats
protected static final TimeZone gmtZone
protected boolean collection
protected long contentLength
protected long creation
protected Date creationDate
protected long lastModified
protected Date lastModifiedDate
protected String lastModifiedHttp
protected String mimeType
protected String name
protected String weakETag
protected String strongETag
protected Attributes attributes
Constructor Detail |
---|
public ResourceAttributes()
public ResourceAttributes(Attributes attributes)
Method Detail |
---|
public boolean isCollection()
public void setCollection(boolean collection)
collection
- New flag valuepublic long getContentLength()
public void setContentLength(long contentLength)
contentLength
- New content length valuepublic long getCreation()
@Deprecated public void setCreation(long creation)
creation
- New creation valuepublic Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate
- New creation datepublic long getLastModified()
public void setLastModified(long lastModified)
lastModified
- New last modified valuepublic Date getLastModifiedDate()
@Deprecated public void setLastModifiedDate(Date lastModifiedDate)
lastModifiedDate
- New last modified datepublic String getLastModifiedHttp()
@Deprecated public void setLastModifiedHttp(String lastModifiedHttp)
lastModifiedHttp
- The lastModifiedHttp to set.public String getMimeType()
public void setMimeType(String mimeType)
mimeType
- The mimeType to set.public String getName()
public void setName(String name)
name
- New name valuepublic String getResourceType()
public void setResourceType(String resourceType)
resourceType
- New resource typepublic String getETag()
public void setETag(String eTag)
public String getCanonicalPath()
public Attribute get(String attrID)
get
in interface Attributes
public Attribute put(Attribute attribute)
put
in interface Attributes
public Attribute put(String attrID, Object val)
put
in interface Attributes
public Attribute remove(String attrID)
remove
in interface Attributes
public NamingEnumeration<? extends Attribute> getAll()
getAll
in interface Attributes
public NamingEnumeration<String> getIDs()
getIDs
in interface Attributes
public int size()
size
in interface Attributes
public Object clone()
clone
in interface Attributes
clone
in class Object
public boolean isCaseIgnored()
isCaseIgnored
in interface Attributes
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |