|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.geocode.GeocodeCache
public abstract class GeocodeCache
A base class used to represent a client side cache for Geocoder requests.
This class is a base class but is not intended to be extended directly. For a
functional class that you can also extend, see CustomGeocodeCache
.
Field Summary | |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
jsoPeer
|
Constructor Summary | |
---|---|
protected |
GeocodeCache()
Deprecated. use GeocodeCache(JavaScriptObject) instead |
protected |
GeocodeCache(com.google.gwt.core.client.JavaScriptObject jsoPeer)
Instantiate a new wrapper object from an existing JavaScript instance. |
Method Summary | |
---|---|
abstract com.google.gwt.core.client.JavaScriptObject |
get(java.lang.String address)
Returns the reply which was stored under the given address. |
abstract boolean |
isCacheable(com.google.gwt.core.client.JavaScriptObject reply)
Returns whether or not the given reply should be cached. |
abstract void |
put(java.lang.String address,
com.google.gwt.core.client.JavaScriptObject reply)
Stores the given reply under the given address. |
abstract void |
reset()
Purges all replies from the cache. |
abstract java.lang.String |
toCanonical(java.lang.String address)
Returns what is considered a canonical version of the address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final com.google.gwt.core.client.JavaScriptObject jsoPeer
Constructor Detail |
---|
@Deprecated protected GeocodeCache()
GeocodeCache(JavaScriptObject)
instead
protected GeocodeCache(com.google.gwt.core.client.JavaScriptObject jsoPeer)
Method Detail |
---|
public abstract com.google.gwt.core.client.JavaScriptObject get(java.lang.String address)
null
address
- the address used as a key to lookup.
public abstract boolean isCacheable(com.google.gwt.core.client.JavaScriptObject reply)
null
and that it has
the name field . This method may be overridden by extending classes to
provide more precise conditions on the reply object.
reply
- the reply to test.
public abstract void put(java.lang.String address, com.google.gwt.core.client.JavaScriptObject reply)
isCacheable(com.google.gwt.core.client.JavaScriptObject)
method to verify that the reply may be cached. If it
gets a go-ahead, it caches the reply under the address normalized with the
help of the toCanonical(java.lang.String)
method.
address
- the address used in the query.reply
- the reply value to cache.public abstract void reset()
public abstract java.lang.String toCanonical(java.lang.String address)
address
- the address to convert to canonical form.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |