Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseResource

        public BaseResource()
    • 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)