Class AbstractResource

    • Field Detail

      • SERVICE_VERSION_FORMAT

        public static final java.lang.String SERVICE_VERSION_FORMAT
        See Also:
        Constant Field Values
      • APPLICATION_SCHEMA_JSON

        public static final java.lang.String APPLICATION_SCHEMA_JSON
        See Also:
        Constant Field Values
      • APPLICATION_SCHEMA_JSON_TYPE

        public static final javax.ws.rs.core.MediaType APPLICATION_SCHEMA_JSON_TYPE
    • Constructor Detail

      • AbstractResource

        public AbstractResource()
    • Method Detail

      • setPersistenceFactory

        public void setPersistenceFactory​(PersistenceContextFactory factory)
        Sets the persistence factory.
        Parameters:
        factory - the new persistence factory
      • getPersistenceFactory

        public PersistenceContextFactory getPersistenceFactory()
        Gets the persistence factory.
        Returns:
        the persistence factory
      • getPersistenceFactory

        public PersistenceContextFactory getPersistenceFactory​(java.lang.ClassLoader loader)
        Gets the persistence factory.
        Returns:
        the persistence factory
      • getQueryParameters

        public static java.util.Map<java.lang.String,​java.lang.Object> getQueryParameters​(javax.ws.rs.core.UriInfo info)
        Get the URI query parameters of the current request In JPA-RS, predefined attributes (such as eclipselink query hints) are treated as query parameters List of valid query parameters for JPA-RS is defined in QueryParameters
        Parameters:
        info - the info
        Returns:
        the query parameters
        See Also:
        QueryParameters