Class AbstractPersistenceResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractPersistenceResource
- Direct Known Subclasses:
PersistenceResource
Base class for persistent unit resources.
-
Field Summary
Fields inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
APPLICATION_SCHEMA_JSON, APPLICATION_SCHEMA_JSON_TYPE, factory, SERVICE_VERSION_FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Response
callSessionBeanInternal
(String version, HttpHeaders headers, UriInfo uriInfo, InputStream is) protected Response
getContextsInternal
(String version, HttpHeaders headers, UriInfo uriInfo) Produces a response containing a list of available persistence contexts.Methods inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
buildPersistenceContextFactory, getMatrixParameters, getPersistenceContext, getPersistenceFactory, getPersistenceFactory, getQueryParameters, getRelationshipPartner, isValidVersion, marshallMetadata, setPersistenceFactory, setRequestUniqueId
-
Constructor Details
-
AbstractPersistenceResource
public AbstractPersistenceResource()
-
-
Method Details
-
getContextsInternal
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 headersuriInfo
- the URL- Returns:
- response containing a list of persistence contexts.
-
callSessionBeanInternal
protected Response callSessionBeanInternal(String version, HttpHeaders headers, UriInfo uriInfo, InputStream is)
-