public abstract class AbstractResource extends Object implements Resource
| Constructor and Description |
|---|
AbstractResource(String mimetype)
Initializes this AbstractResource with the given mimetype.
|
AbstractResource(String mimetype,
long lastModified)
Initializes this AbstractResource with the given mimetype and
modification time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified()
Returns the time the resource was last modified in milliseconds since
midnight of January 1, 1970 UTC.
|
String |
getMimeType()
Returns the mimetype of this resource.
|
public AbstractResource(String mimetype, long lastModified)
mimetype - The mimetype of this resource.lastModified - The time this resource was last modified, in milliseconds since
midnight of January 1, 1970 UTC.public AbstractResource(String mimetype)
mimetype - The mimetype of this resource.public long getLastModified()
ResourcegetLastModified in interface Resourcepublic String getMimeType()
ResourcegetMimeType in interface ResourceCopyright © 2015. All rights reserved.