public class SessionCacheRetrievalPostProcessor extends Object implements RetrievalPostProcessor
Modifier and Type | Field and Description |
---|---|
protected AbsentResourceList |
absentResourceList |
protected SessionCache |
cache |
protected Object |
cacheKey |
protected String |
name |
protected PropertyChangeListener |
propertyListener |
protected String |
propertyName |
protected long |
resourceID |
Constructor and Description |
---|
SessionCacheRetrievalPostProcessor(SessionCache cache,
Object cacheKey,
AbsentResourceList absentResourceList,
long resourceID,
PropertyChangeListener propertyListener,
String propertyName)
Constructs a SessionCachePostProcessor with a specified cache and cache key, and an optional property listener
and property name.
|
Modifier and Type | Method and Description |
---|---|
AbsentResourceList |
getAbsentResourceList()
Returns the absent resource list that is updated when the retrieval completes.
|
SessionCache |
getCache()
Returns the session cache that receives the retrieved data.
|
Object |
getCacheKey()
Returns the cache key which identifies where the retrieved data is placed in the session cache.
|
String |
getName()
Returns this post processor's name, or null if this post processor doesn't have a name.
|
PropertyChangeListener |
getPropertyListener()
Returns the property change listener which is fired when the retrieved data is available.
|
String |
getPropertyName()
Returns the property name to use in the property change event fired when retrieved data is available.
|
long |
getResourceID()
Returns the resource ID to use in the absent resource list.
|
protected void |
handleContent(Retriever retriever) |
protected void |
handleContentException(Retriever retriever,
Exception e) |
protected void |
handleUnknownContent(Retriever retriever) |
protected void |
handleWMSCapabilitiesContent(Retriever retriever) |
protected void |
onRetrievalFailed(Retriever retriever) |
protected void |
onRetrievalSuceeded(Retriever retriever) |
ByteBuffer |
run(Retriever retriever)
Inspect the results of a retrieval for success or failure.
|
void |
setName(String name)
Sets this post processor's name to a specified String value, or null to specify that the post processor does not
have a name.
|
protected void |
signalRetrievalComplete() |
String |
toString()
If the post processor has a non-null String name, this returns that name.
|
protected String |
validate(Retriever retriever) |
protected final AbsentResourceList absentResourceList
protected final SessionCache cache
protected final Object cacheKey
protected String name
protected final PropertyChangeListener propertyListener
protected final String propertyName
protected final long resourceID
public SessionCacheRetrievalPostProcessor(SessionCache cache, Object cacheKey, AbsentResourceList absentResourceList, long resourceID, PropertyChangeListener propertyListener, String propertyName)
cache
- cache that receives the retrieved data.cacheKey
- cache key to place the retrieved data under.absentResourceList
- the absent resource list to update.resourceID
- the resource ID to use in the absent resource list.propertyListener
- property listener to notify when the data is available. Can be null.propertyName
- property name to use for the property event when the data is available. Can be null.public final AbsentResourceList getAbsentResourceList()
public final SessionCache getCache()
public final Object getCacheKey()
public String getName()
public final PropertyChangeListener getPropertyListener()
public final String getPropertyName()
public final long getResourceID()
protected void handleUnknownContent(Retriever retriever) throws Exception
Exception
protected void handleWMSCapabilitiesContent(Retriever retriever) throws Exception
Exception
protected void onRetrievalFailed(Retriever retriever)
protected void onRetrievalSuceeded(Retriever retriever)
public ByteBuffer run(Retriever retriever)
run
in interface RetrievalPostProcessor
retriever
- the Retriever which has either succeeded or failed in fetching the data.public void setName(String name)
name
- this post processor's name. May be null.protected void signalRetrievalComplete()
public String toString()