|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Resource
org.restlet.resource.UniformResource
org.restlet.resource.ClientResource
org.restlet.ext.rdf.RdfClientResource
public class RdfClientResource
Linked client resource. In addition to regular client resources, this class offers additional method aware of links exposed by RDF, making it natural to navigate the Web of data.
Constructor Summary | |
---|---|
RdfClientResource(Context context,
Method method,
Reference reference)
Constructor. |
|
RdfClientResource(Context context,
Method method,
String uri)
Constructor. |
|
RdfClientResource(Context context,
Method method,
URI uri)
Constructor. |
|
RdfClientResource(Context context,
Reference reference)
Constructor. |
|
RdfClientResource(Context context,
Request request,
Response response)
Constructor. |
|
RdfClientResource(Context context,
String uri)
Constructor. |
|
RdfClientResource(Context context,
URI uri)
Constructor. |
|
RdfClientResource(Method method,
Reference reference)
Constructor. |
|
RdfClientResource(Method method,
String uri)
Constructor. |
|
RdfClientResource(Method method,
URI uri)
Constructor. |
|
RdfClientResource(Reference reference)
Constructor. |
|
RdfClientResource(Request request,
Response response)
Constructor. |
|
RdfClientResource(String uri)
Constructor. |
|
RdfClientResource(URI uri)
Constructor. |
Method Summary | |
---|---|
Set<RdfClientResource> |
getLinked()
Returns all the linked resources, based on the RDF representation exposed. |
Set<RdfClientResource> |
getLinked(Collection<Reference> typeRefs)
Returns the linked resources, based on the RDF representation exposed. |
Set<RdfClientResource> |
getLinked(Reference typeRef)
Returns the linked resources, based on the RDF representation exposed. |
Graph |
getLinks()
Returns the links exposed by this resource. |
Set<Couple<Reference,Literal>> |
getLiterals()
Returns all the linked literals, based on the RDF representation exposed. |
Set<Literal> |
getLiterals(Reference typeRef)
Returns the linked literals, based on the RDF representation exposed. |
void |
refresh()
Refreshes the links cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RdfClientResource(Context context, Method method, Reference reference)
context
- The context.method
- The method to call.reference
- The target reference.public RdfClientResource(Context context, Method method, String uri)
context
- The context.method
- The method to call.uri
- The target URI.public RdfClientResource(Context context, Method method, URI uri)
context
- The context.method
- The method to call.uri
- The target URI.public RdfClientResource(Context context, Reference reference)
context
- The context.reference
- The target reference.public RdfClientResource(Context context, Request request, Response response)
context
- The current context.request
- The handled request.response
- The handled response.public RdfClientResource(Context context, String uri)
context
- The context.uri
- The target URI.public RdfClientResource(Context context, URI uri)
context
- The context.uri
- The target URI.public RdfClientResource(Method method, Reference reference)
method
- The method to call.reference
- The target reference.public RdfClientResource(Method method, String uri)
method
- The method to call.uri
- The target URI.public RdfClientResource(Method method, URI uri)
method
- The method to call.uri
- The target URI.public RdfClientResource(Reference reference)
reference
- The target reference.public RdfClientResource(Request request, Response response)
request
- The handled request.response
- The handled response.public RdfClientResource(String uri)
uri
- The target URI.public RdfClientResource(URI uri)
uri
- The target URI.Method Detail |
---|
public Set<RdfClientResource> getLinked()
getLinks()
public Set<RdfClientResource> getLinked(Collection<Reference> typeRefs)
typeRefs
- The set of types references of the links to select or null.
getLinks()
public Set<RdfClientResource> getLinked(Reference typeRef)
typeRef
- The type reference of the links to select or null.
getLinks()
public Graph getLinks()
public Set<Couple<Reference,Literal>> getLiterals()
getLinks()
public Set<Literal> getLiterals(Reference typeRef)
typeRef
- The type reference of the links to select or null.
getLiterals()
public void refresh()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |