Module eclipselink
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
public abstract class AbstractPersistenceResource extends AbstractResource
Base class for persistent unit resources.- Author:
- gonural
-
-
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
Constructors Constructor Description AbstractPersistenceResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected jakarta.ws.rs.core.ResponsecallSessionBeanInternal(String version, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.UriInfo uriInfo, InputStream is)protected jakarta.ws.rs.core.ResponsegetContextsInternal(String version, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.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
-
-
-
-
Method Detail
-
getContextsInternal
protected jakarta.ws.rs.core.Response getContextsInternal(String version, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.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 headersuriInfo- the URL- Returns:
- response containing a list of persistence contexts.
-
callSessionBeanInternal
protected jakarta.ws.rs.core.Response callSessionBeanInternal(String version, jakarta.ws.rs.core.HttpHeaders headers, jakarta.ws.rs.core.UriInfo uriInfo, InputStream is)
-
-