Class EntityResource
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
-
- org.eclipse.persistence.jpa.rs.resources.common.AbstractEntityResource
-
- org.eclipse.persistence.jpa.rs.resources.EntityResource
-
@Produces({"application/json","application/xml"}) @Consumes({"application/json","application/xml"}) @Path("/{version : v\\d\\.\\d|latest}/{context}/entity/") public class EntityResource extends AbstractEntityResource
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 EntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
create(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
javax.ws.rs.core.Response
delete(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui)
javax.ws.rs.core.Response
find(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, java.lang.String id, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo ui)
javax.ws.rs.core.Response
findAttribute(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 hh, javax.ws.rs.core.UriInfo ui)
javax.ws.rs.core.Response
getEntityOptions(java.lang.String version, java.lang.String persistenceUnit, java.lang.String entityName, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
removeAttribute(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 hh, javax.ws.rs.core.UriInfo ui)
javax.ws.rs.core.Response
setOrAddAttribute(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 hh, javax.ws.rs.core.UriInfo ui, java.io.InputStream in)
javax.ws.rs.core.Response
update(java.lang.String version, java.lang.String persistenceUnit, java.lang.String type, javax.ws.rs.core.HttpHeaders hh, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
-
Methods inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractEntityResource
buildEntityOptionsResponse, createInternal, deleteInternal, findAttributeInternal, findInternal, removeAttributeInternal, setOrAddAttributeInternal, updateInternal
-
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
-
findAttribute
@GET @Path("{type}/{id}/{attribute}") public javax.ws.rs.core.Response findAttribute(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @PathParam("attribute") java.lang.String attribute, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
-
find
@GET @Path("{type}/{id}") public javax.ws.rs.core.Response find(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
-
create
@PUT @Path("{type}") public javax.ws.rs.core.Response create(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in) throws java.lang.Exception
- Throws:
java.lang.Exception
-
update
@POST @Path("{type}") public javax.ws.rs.core.Response update(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream in)
-
setOrAddAttribute
@POST @Path("{type}/{id}/{attribute}") public javax.ws.rs.core.Response setOrAddAttribute(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @PathParam("attribute") java.lang.String attribute, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui, java.io.InputStream in)
-
removeAttribute
@DELETE @Path("{type}/{id}/{attribute}") public javax.ws.rs.core.Response removeAttribute(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @PathParam("attribute") java.lang.String attribute, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
-
delete
@DELETE @Path("{type}/{id}") public javax.ws.rs.core.Response delete(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("type") java.lang.String type, @PathParam("id") java.lang.String id, @Context javax.ws.rs.core.HttpHeaders hh, @Context javax.ws.rs.core.UriInfo ui)
-
getEntityOptions
@OPTIONS @Path("{entityName}") public javax.ws.rs.core.Response getEntityOptions(@PathParam("version") java.lang.String version, @PathParam("context") java.lang.String persistenceUnit, @PathParam("entityName") java.lang.String entityName, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo uriInfo)
-
-