Class MetadataResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.MetadataResource
@Produces("application/json")
@Consumes("application/json")
@Path("/{version : v\\d\\.\\d|latest}/{context}/metadata-catalog/")
public class MetadataResource
extends AbstractResource
JPARS 2.0 metadata catalog. Resource metadata and schemas.
- Since:
- EclipseLink 2.6.0.
-
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 TypeMethodDescriptiongetEntityResource
(String version, String persistenceUnit, String entityName, HttpHeaders httpHeaders, UriInfo uriInfo) Returns entity metadata if accepted media type is 'application/json' or entity schema if accepted media type is 'application/schema+json'.getMetadataCatalog
(String version, String persistenceUnit, HttpHeaders httpHeaders, UriInfo uriInfo) Returns metadata catalog.getQueryResource
(String version, String persistenceUnit, String queryName, HttpHeaders httpHeaders, UriInfo uriInfo) Returns query metadata if accepted media type is 'application/json' or entity schema if accepted media type is 'application/schema+json'.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
-
MetadataResource
public MetadataResource()
-
-
Method Details
-
getMetadataCatalog
@GET public Response getMetadataCatalog(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @Context HttpHeaders httpHeaders, @Context UriInfo uriInfo) Returns metadata catalog. -
getEntityResource
@GET @Produces({"application/json","application/schema+json"}) @Consumes({"application/json","application/schema+json"}) @Path("entity/{entityName}") public Response getEntityResource(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("entityName") String entityName, @Context HttpHeaders httpHeaders, @Context UriInfo uriInfo) Returns entity metadata if accepted media type is 'application/json' or entity schema if accepted media type is 'application/schema+json'. -
getQueryResource
@GET @Produces({"application/json","application/schema+json"}) @Consumes({"application/json","application/schema+json"}) @Path("query/{queryName}") public Response getQueryResource(@PathParam("version") String version, @PathParam("context") String persistenceUnit, @PathParam("queryName") String queryName, @Context HttpHeaders httpHeaders, @Context UriInfo uriInfo) Returns query metadata if accepted media type is 'application/json' or entity schema if accepted media type is 'application/schema+json'.
-