|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.peaseplate.locator.AbstractLocator
org.peaseplate.locator.AbstractURLBasedLocator
public abstract class AbstractURLBasedLocator
An abstract implementation of a locator that is based on an URL
| Constructor Summary | |
|---|---|
AbstractURLBasedLocator(java.net.URL url,
ResourceKey key)
Creates the URL based locator |
|
AbstractURLBasedLocator(java.net.URL url,
java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
Creates the URL based locator |
|
| Method Summary | |
|---|---|
java.net.URL |
getUrl()
Returns the URL this locator is based on |
boolean |
isOutdated()
Returns true if the resource described by the locator got updated and needs to be reloaded |
java.lang.String |
toString()
A meaningful representation of the locator, mainly used for textual output e.g. in error messages |
protected void |
updateMetadata()
Updates the timestamp and the raw size in the metadata |
| Methods inherited from class org.peaseplate.locator.AbstractLocator |
|---|
getKey, getRawSize, getTimestamp, setRawSize, setTimestamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractURLBasedLocator(java.net.URL url,
java.lang.String name,
java.util.Locale locale,
java.lang.String encoding)
throws java.lang.IllegalArgumentException
url - the URLname - the namelocale - the localeencoding - the encoding
java.lang.IllegalArgumentException - if the URL or the name is null
public AbstractURLBasedLocator(java.net.URL url,
ResourceKey key)
throws java.lang.IllegalArgumentException
url - the URLkey - the key
java.lang.IllegalArgumentException - if the URL or the key is null| Method Detail |
|---|
public java.net.URL getUrl()
public boolean isOutdated()
Locator
Locator.isOutdated()protected void updateMetadata()
public java.lang.String toString()
Locator
toString in interface LocatortoString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||