public class GenericEntityInfo extends Object implements EntityInfo
This class can be used as a base class for other entity info implementations.
Constructor and Description |
---|
GenericEntityInfo(Date modified,
String contentType,
String etag)
Creates a new entity info.
|
GenericEntityInfo(long modified,
String contentType,
String etag)
Creates a new entity info.
|
Modifier and Type | Method and Description |
---|---|
String |
getETag()
Get ETag.
|
long |
getLastModified()
Get last modified time.
|
String |
getMimeType()
Returns the MIME Type as defined for the server.
|
public GenericEntityInfo(long modified, String contentType, String etag)
modified
- The last modified date of the entity.contentType
- The content type of the entity.etag
- The etag for the entity.public final long getLastModified()
EntityInfo
getLastModified
in interface EntityInfo
public final String getMimeType()
EntityInfo
getMimeType
in interface EntityInfo
public final String getETag()
EntityInfo
getETag
in interface EntityInfo
Copyright © 2016 Allette Systems. All rights reserved.