Class PersistenceResource
java.lang.Object
org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
org.eclipse.persistence.jpa.rs.resources.common.AbstractPersistenceResource
org.eclipse.persistence.jpa.rs.resources.PersistenceResource
@Produces({"application/json","application/xml"})
@Consumes({"application/json","application/xml"})
@Path("/{version : v\\d\\.\\d|latest}/")
public class PersistenceResource
extends AbstractPersistenceResource
Persistence units catalog resource (JPARS version 2.0 and above).
-
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 TypeMethodDescriptioncallSessionBean
(String version, HttpHeaders hh, UriInfo ui, InputStream is) getContexts
(String version, HttpHeaders hh, UriInfo uriInfo) Methods inherited from class org.eclipse.persistence.jpa.rs.resources.common.AbstractPersistenceResource
callSessionBeanInternal, getContextsInternal
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
-
PersistenceResource
public PersistenceResource()
-
-
Method Details
-
getContexts
@GET public Response getContexts(@PathParam("version") String version, @Context HttpHeaders hh, @Context UriInfo uriInfo) throws JAXBException - Throws:
JAXBException
-
callSessionBean
@POST @Produces("*/*") public Response callSessionBean(@PathParam("version") String version, @Context HttpHeaders hh, @Context UriInfo ui, InputStream is) throws JAXBException, ClassNotFoundException, NamingException, NoSuchMethodException, InvocationTargetException, IllegalAccessException
-