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, newInstancepublic 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()
LocalResourcegetTimestamp in class LocalResourcepublic LocalResourceType getType()
LocalResourceLocalResourceType of the resource to be localized.getType in class LocalResourceLocalResourceType of the resource to be localizedpublic URL getResource()
LocalResourcegetResource in class LocalResourcepublic long getSize()
LocalResourcegetSize in class LocalResourcepublic LocalResourceVisibility getVisibility()
LocalResourceLocalResourceVisibility of the resource to be
localized.getVisibility in class LocalResourceLocalResourceVisibility of the resource to be
localizedpublic String getPattern()
LocalResourcePATTERN).getPattern in class LocalResourcepublic void setResource(URL resource)
LocalResourcesetResource in class LocalResourceresource - location of the resource to be localizedpublic void setSize(long size)
LocalResourcesetSize in class LocalResourcesize - size of the resource to be localizedpublic void setTimestamp(long timestamp)
LocalResourcesetTimestamp in class LocalResourcetimestamp - timestamp of the resource to be localizedpublic void setType(LocalResourceType type)
LocalResourceLocalResourceType of the resource to be localized.setType in class LocalResourcetype - LocalResourceType of the resource to be localizedpublic void setVisibility(LocalResourceVisibility visibility)
LocalResourceLocalResourceVisibility of the resource to be
localized.setVisibility in class LocalResourcevisibility - LocalResourceVisibility of the resource to be
localizedpublic void setPattern(String pattern)
LocalResourcePATTERN).setPattern in class LocalResourcepattern - pattern that should be used to extract entries
from the archive.Copyright © 2013 Apache Software Foundation. All rights reserved.