public interface HttpResource extends Serializable
HTTP resource.
All HttpResource
implementations must be Serializable
to
enable them to be serialised into caches.
Modifier and Type | Method and Description |
---|---|
String |
getPath()
Obtains the Request URI path to this
HttpResource . |
boolean |
isExist()
Indicates if this
HttpResource exists. |
String getPath()
Obtains the Request URI path to this HttpResource
.
The path is canonical to allow using it as a key for caching this
HttpResource
.
HttpResource
.boolean isExist()
Indicates if this HttpResource
exists. Should this
HttpResource
not exist, only the path will be available.
This allows for caching of HttpResource
instances not existing.
It also enables implementations of ManagedObjectSource
instances
to provide the HttpResource
from a HttpRequest
dependency
- can always provide an instance with this indicating if exists.
true
if this HttpResource
exists.Copyright © 2005–2016. All rights reserved.