2013-03-23 15:52:26 +01:00
|
|
|
package com.commafeed.frontend.rest;
|
|
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
|
|
import javax.ws.rs.ApplicationPath;
|
|
|
|
|
import javax.ws.rs.core.Application;
|
|
|
|
|
|
2013-03-23 17:17:27 +01:00
|
|
|
import com.commafeed.frontend.rest.resources.AbstractREST;
|
2013-03-23 16:17:19 +01:00
|
|
|
import com.commafeed.frontend.rest.resources.EntriesREST;
|
|
|
|
|
import com.commafeed.frontend.rest.resources.SubscriptionsREST;
|
2013-03-23 15:52:26 +01:00
|
|
|
import com.google.common.collect.Sets;
|
|
|
|
|
|
|
|
|
|
@ApplicationPath("/rest")
|
|
|
|
|
public class RESTApplication extends Application {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Set<Class<?>> getClasses() {
|
|
|
|
|
Set<Class<?>> set = Sets.newHashSet();
|
|
|
|
|
set.add(JSONMessageBodyWriter.class);
|
|
|
|
|
|
2013-03-23 17:17:27 +01:00
|
|
|
set.add(AbstractREST.class);
|
2013-03-23 15:52:26 +01:00
|
|
|
set.add(SubscriptionsREST.class);
|
|
|
|
|
set.add(EntriesREST.class);
|
|
|
|
|
return set;
|
|
|
|
|
}
|
|
|
|
|
}
|