Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.ws.rs.ApplicationPath;
- import javax.ws.rs.core.Application;
- import java.util.HashSet;
- import java.util.Set;
- //Defines the base URI for all resource URIs.
- @ApplicationPath("/")
- //The java class declares root resource and provider classes
- public class MyApplication extends Application{
- //The method returns a non-empty collection with classes, that must be included in the published JAX-RS application
- @Override
- public Set<Class<?>> getClasses() {
- HashSet<Class<?>> h = new HashSet<Class<?>>();
- h.add( ServiceMapLocation.class );
- return h;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement