java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractPersistenceResource
Direct Known Subclasses:
PersistenceResource

public abstract class AbstractPersistenceResource extends AbstractResource
Base class for persistent unit resources.
  • Constructor Details

    • AbstractPersistenceResource

      public AbstractPersistenceResource()
  • Method Details

    • getContextsInternal

      protected Response getContextsInternal(String version, HttpHeaders headers, UriInfo uriInfo)
      Produces a response containing a list of available persistence contexts. Returns different responses depending version.
      Parameters:
      version - the service version (null, "v1.0", "v2.0", "latest")
      headers - the HTTP headers
      uriInfo - the URL
      Returns:
      response containing a list of persistence contexts.
    • callSessionBeanInternal

      protected Response callSessionBeanInternal(String version, HttpHeaders headers, UriInfo uriInfo, InputStream is)