Class AbstractEntityResource
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
-
- org.eclipse.persistence.jpa.rs.resources.common.AbstractEntityResource
-
- Direct Known Subclasses:
EntityResource
,EntityResource
public abstract class AbstractEntityResource extends AbstractResource
Base class for entity resource.- 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 AbstractEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response
buildEntityOptionsResponse(java.lang.String version, java.lang.String persistenceUnit, java.lang.String entityName, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)
protected javax.ws.rs.core.Response
createInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
protected javax.ws.rs.core.Response
deleteInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
protected javax.ws.rs.core.Response
findAttributeInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
protected javax.ws.rs.core.Response
findInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
protected javax.ws.rs.core.Response
removeAttributeInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
protected javax.ws.rs.core.Response
setOrAddAttributeInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
protected javax.ws.rs.core.Response
updateInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
-
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
-
findAttributeInternal
protected javax.ws.rs.core.Response findAttributeInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
-
findInternal
protected javax.ws.rs.core.Response findInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
-
createInternal
protected javax.ws.rs.core.Response createInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
-
updateInternal
protected javax.ws.rs.core.Response updateInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
-
setOrAddAttributeInternal
protected javax.ws.rs.core.Response setOrAddAttributeInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
-
removeAttributeInternal
protected javax.ws.rs.core.Response removeAttributeInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, java.lang.String attribute, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
-
deleteInternal
protected javax.ws.rs.core.Response deleteInternal(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders headers, javax.ws.rs.core.UriInfo uriInfo)
-
buildEntityOptionsResponse
protected javax.ws.rs.core.Response buildEntityOptionsResponse(java.lang.String version, java.lang.String persistenceUnit, java.lang.String entityName, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)
-
-