THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<servlet> <servlet-name>restSdkService</servlet-name> <servlet-class> com.hp.wink.server.internal.servlet.RestServlet </servlet-class> <init-param> <param-name>wink.applicationConfigLocation</param-name> <param-value>/WEB-INF/providers;/WEB-INF/resources</param-value> </init-param> </servletservlet> |
Apache Wink Application
Apache Wink extends the javax.ws.rs.core.Application class with the com.hp.symphony.common.SymphonyApplication 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 | xml | xml
---|
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; } } |
...