org.qi4j.library.rest.common
Interface Resource

All Superinterfaces:
Composite, ValueComposite
All Known Implementing Classes:
Resource.Mixin

@Mixins(value=Resource.Mixin.class)
public interface Resource
extends ValueComposite

Value representing a whole resource in a URL path. Allows listing of available queries, commands, sub-resources and an index.


Nested Class Summary
static class Resource.Mixin
           
 
Method Summary
 Link command(java.lang.String relation)
           
 Property<java.util.List<Link>> commands()
           
 Property<ValueComposite> index()
           
 Property<java.util.List<Link>> queries()
           
 Link query(java.lang.String relation)
           
 Link resource(java.lang.String relation)
           
 Property<java.util.List<Link>> resources()
           
 

Method Detail

queries

@UseDefaults
Property<java.util.List<Link>> queries()

query

Link query(java.lang.String relation)

commands

@UseDefaults
Property<java.util.List<Link>> commands()

command

Link command(java.lang.String relation)

resources

@UseDefaults
Property<java.util.List<Link>> resources()

resource

Link resource(java.lang.String relation)

index

@Optional
Property<ValueComposite> index()