|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceStateHandler
Control the etags, dateModified and expires of rest services that can be cached.
| Nested Class Summary | |
|---|---|
static interface |
ResourceStateHandler.ResourceState
Contains state information about a given rest URI |
| Method Summary | |
|---|---|
ResourceStateHandler.ResourceState |
add(String uri,
long dateModified,
long expires,
String etag)
Add state information about one rest URI |
void |
clear()
Clear all state information from rest URIs |
ResourceStateHandler.ResourceState |
get(String uri)
Retrieve state information about one rest URI |
void |
remove(String uri)
Clear the state information about one rest URI |
void |
removeSegments(String... baseURIs)
Clear the state information about any rest URI that starts with one of the baseURIs provided |
| Method Detail |
|---|
ResourceStateHandler.ResourceState add(String uri,
long dateModified,
long expires,
String etag)
uri - dateModified - expires - etag -
ResourceStateHandler.ResourceState get(String uri)
uri -
void remove(String uri)
uri - void removeSegments(String... baseURIs)
baseURIs - void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||