THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Apache Wink extends the javax.ws.rs.core.Application class with the comorg.hpapache.symphonywink.common.SymphonyApplication WinkApplication class in order to provide the Dynamic Resources and the Priorities functionality.
...
A Dynamic Resource is useful for situations where a resource class must be bound to multiple paths, for example, a sorting resource:
Code Block |
---|
public class SortingResource<E extends Comparable<? super E>> {
private List<E> list;
@POST
public void sort() {
Collections.sort(list);
}
public void setList(List<E> list) {
this.list = list;
}
public List<E> getList() {
return list;
}
}
|
...