wicket-jersey
Adaptor for Apache Wicket to support JAX-RS through embedding Jersey
Quick start
Add to your pom.xml the following dependency
<dependency>
<groupId>org.orienteer.wicket-jersey</groupId>
<artifactId>wicket-jersey</artifactId>
<version>REQUIRED VERSION</version> <!-- Put required version-->
</dependency>
Use class org.orienteer.wicketjersey.WicketJersey to mount required REST resources in Application.init(). For example:
WicketJersey.mount(new MyApplication());
//OR
WicketJersey.mount("/api", new MyApplication());
//OR
WicketJersey.mount("/rest", "org.orienteer.wicketjersey.demo.rest");
Done!
How to run demo
- Clone current repository
- Go to folder with your local repository
- Run
mvn clean install - Go to sub folder
wicker-jersey-demo - Run
mvn jetty:run - Open your internet browser and go to http://localhost:8080