Package com.sodius.oslc.core.application
Class DefaultApplication
- java.lang.Object
-
- javax.ws.rs.core.Application
-
- com.sodius.oslc.core.application.DefaultApplication
-
public class DefaultApplication extends Application
Simplifies the registration of services in an Application instance.This application always registers a service on its own that can send in a response an OSLC Error instance when either
text/plain
ortext/html
is requested.
-
-
Constructor Summary
Constructors Constructor Description DefaultApplication(Class<?>... classes)
DefaultApplication(Collection<Class<?>> classes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<?>>
getClasses()
-
Methods inherited from class javax.ws.rs.core.Application
getSingletons
-
-
-
-
Constructor Detail
-
DefaultApplication
public DefaultApplication(Collection<Class<?>> classes)
-
DefaultApplication
public DefaultApplication(Class<?>... classes)
-
-
Method Detail
-
getClasses
public final Set<Class<?>> getClasses()
- Overrides:
getClasses
in classApplication
-
-