|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityDereferencer
Service used by Site to dereference Representation
for entity ids. Implementations of this interface are dependent on the
service provided by the referenced site.
| Field Summary | |
|---|---|
static String |
ACCESS_URI
The key used to define the baseUri of the service used for the implementation of this interface. This constants actually uses the value of SiteConfiguration#ACCESS_URI |
| Method Summary | |
|---|---|
boolean |
canDereference(String uri)
Whether the parsed entity ID can be dereferenced by this Dereferencer or not. The implementation may not directly check if the parsed URI is present by a query to the site, but only check some patterns of the parsed URI. |
Representation |
dereference(String uri)
Dereferences the Representation of the referred Entity |
InputStream |
dereference(String uri,
String contentType)
Generic getter for the data of the parsed entity id |
String |
getAccessUri()
The base uri used to access this site |
| Field Detail |
|---|
static final String ACCESS_URI
SiteConfiguration#ACCESS_URI
| Method Detail |
|---|
String getAccessUri()
boolean canDereference(String uri)
uri - the URI to be checked
true of URIs of that kind can be typically dereferenced
by this service instance.
InputStream dereference(String uri,
String contentType)
throws IOException
uri - the entity to dereferencecontentType - the content type of the data
null if not present or wrong data type
TODO: we should use exceptions instead of returning null!
IOException
Representation dereference(String uri)
throws IOException
uri - the uri of the referred entity
null if no Entity was found
for the parsed entity reference.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||