public class MetadataResource extends AbstractResource
APPLICATION_SCHEMA_JSON, APPLICATION_SCHEMA_JSON_TYPE, factory, SERVICE_VERSION_FORMAT
Constructor and Description |
---|
MetadataResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getEntityResource(java.lang.String version,
java.lang.String persistenceUnit,
java.lang.String entityName,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo uriInfo)
Returns entity metadata if accepted media type is 'application/json' or entity schema if
accepted media type is 'application/schema+json'.
|
javax.ws.rs.core.Response |
getMetadataCatalog(java.lang.String version,
java.lang.String persistenceUnit,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo uriInfo)
Returns metadata catalog.
|
javax.ws.rs.core.Response |
getQueryResource(java.lang.String version,
java.lang.String persistenceUnit,
java.lang.String queryName,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo uriInfo)
Returns query metadata if accepted media type is 'application/json' or entity schema if
accepted media type is 'application/schema+json'.
|
buildPersistenceContextFactory, getMatrixParameters, getPersistenceContext, getPersistenceFactory, getPersistenceFactory, getQueryParameters, getRelationshipPartner, isValidVersion, marshallMetadata, setPersistenceFactory, setRequestUniqueId
public javax.ws.rs.core.Response getMetadataCatalog(java.lang.String version, java.lang.String persistenceUnit, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response getEntityResource(java.lang.String version, java.lang.String persistenceUnit, java.lang.String entityName, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response getQueryResource(java.lang.String version, java.lang.String persistenceUnit, java.lang.String queryName, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo uriInfo)