Class BaseResource

  • Direct Known Subclasses:
    AbstractWebResource

    public abstract class BaseResource
    extends Object
    Base abstraction of a JAX-RS resource.
    • Constructor Detail

      • BaseResource

        public BaseResource()
    • Method Detail

      • get

        public <T> T get​(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​(Object obj)