public class LocalResourceRequest extends LocalResource implements Comparable<LocalResourceRequest>
Constructor and Description |
---|
LocalResourceRequest(LocalResource resource)
Wrap API resource to match against cache of localized resources.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LocalResourceRequest other) |
boolean |
equals(Object o) |
Path |
getPath() |
String |
getPattern()
Get the pattern that should be used to extract entries from the
archive (only used when type is
PATTERN ). |
URL |
getResource()
Get the location of the resource to be localized.
|
long |
getSize()
Get the size of the resource to be localized.
|
long |
getTimestamp()
Get the original timestamp of the resource to be localized, used
for verification.
|
LocalResourceType |
getType()
Get the
LocalResourceType of the resource to be localized. |
LocalResourceVisibility |
getVisibility()
Get the
LocalResourceVisibility of the resource to be
localized. |
int |
hashCode() |
void |
setPattern(String pattern)
Set the pattern that should be used to extract entries from the
archive (only used when type is
PATTERN ). |
void |
setResource(URL resource)
Set location of the resource to be localized.
|
void |
setSize(long size)
Set the size of the resource to be localized.
|
void |
setTimestamp(long timestamp)
Set the timestamp of the resource to be localized, used
for verification.
|
void |
setType(LocalResourceType type)
Set the
LocalResourceType of the resource to be localized. |
void |
setVisibility(LocalResourceVisibility visibility)
Set the
LocalResourceVisibility of the resource to be
localized. |
String |
toString() |
newInstance, newInstance
public LocalResourceRequest(LocalResource resource) throws URISyntaxException
resource
- Resource requested by containerURISyntaxException
- If the path is malformedpublic int compareTo(LocalResourceRequest other)
compareTo
in interface Comparable<LocalResourceRequest>
public Path getPath()
public long getTimestamp()
LocalResource
getTimestamp
in class LocalResource
public LocalResourceType getType()
LocalResource
LocalResourceType
of the resource to be localized.getType
in class LocalResource
LocalResourceType
of the resource to be localizedpublic URL getResource()
LocalResource
getResource
in class LocalResource
public long getSize()
LocalResource
getSize
in class LocalResource
public LocalResourceVisibility getVisibility()
LocalResource
LocalResourceVisibility
of the resource to be
localized.getVisibility
in class LocalResource
LocalResourceVisibility
of the resource to be
localizedpublic String getPattern()
LocalResource
PATTERN
).getPattern
in class LocalResource
public void setResource(URL resource)
LocalResource
setResource
in class LocalResource
resource
- location of the resource to be localizedpublic void setSize(long size)
LocalResource
setSize
in class LocalResource
size
- size of the resource to be localizedpublic void setTimestamp(long timestamp)
LocalResource
setTimestamp
in class LocalResource
timestamp
- timestamp of the resource to be localizedpublic void setType(LocalResourceType type)
LocalResource
LocalResourceType
of the resource to be localized.setType
in class LocalResource
type
- LocalResourceType
of the resource to be localizedpublic void setVisibility(LocalResourceVisibility visibility)
LocalResource
LocalResourceVisibility
of the resource to be
localized.setVisibility
in class LocalResource
visibility
- LocalResourceVisibility
of the resource to be
localizedpublic void setPattern(String pattern)
LocalResource
PATTERN
).setPattern
in class LocalResource
pattern
- pattern that should be used to extract entries
from the archive.Copyright © 2013 Apache Software Foundation. All rights reserved.