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
,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 javax.ws.rs.core.Response
callSessionBeanInternal(java.lang.String version, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream is)
protected javax.ws.rs.core.Response
getContextsInternal(java.lang.String version, javax.ws.rs.core.HttpHeaders headers, javax.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 javax.ws.rs.core.Response getContextsInternal(java.lang.String version, javax.ws.rs.core.HttpHeaders headers, javax.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 javax.ws.rs.core.Response callSessionBeanInternal(java.lang.String version, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream is)
-
-