Package org.onlab.rest
Class BaseResource
- java.lang.Object
-
- org.onlab.rest.BaseResource
-
- Direct Known Subclasses:
AbstractWebResource
public abstract class BaseResource extends java.lang.Object
Base abstraction of a JAX-RS resource.
-
-
Constructor Summary
Constructors Constructor Description BaseResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(java.lang.Class<T> service)
Returns reference to the specified service implementation.protected static javax.ws.rs.core.Response.ResponseBuilder
ok(java.lang.Object obj)
-
-
-
Method Detail
-
get
public <T> T get(java.lang.Class<T> service)
Returns reference to the specified service implementation.- Type Parameters:
T
- type of service- Parameters:
service
- service class- Returns:
- service implementation
-
ok
protected static javax.ws.rs.core.Response.ResponseBuilder ok(java.lang.Object obj)
-
-