Skip to content

Adapter for Apache Wicket to support JAX-RS through embedding Jersey

Notifications You must be signed in to change notification settings

OrienteerBAP/wicket-jersey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

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

  1. Clone current repository
  2. Go to folder with your local repository
  3. Run mvn clean install
  4. Go to sub folder wicker-jersey-demo
  5. Run mvn jetty:run
  6. Open your internet browser and go to http://localhost:8080