Class 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).
    Author:
    gonural
    • Constructor Detail

      • PersistenceResource

        public PersistenceResource()
    • Method Detail

      • getContexts

        @GET
        public javax.ws.rs.core.Response getContexts​(@PathParam("version")
                                                     java.lang.String version,
                                                     @Context
                                                     javax.ws.rs.core.HttpHeaders hh,
                                                     @Context
                                                     javax.ws.rs.core.UriInfo uriInfo)
                                              throws JAXBException
        Throws:
        JAXBException
      • callSessionBean

        @POST
        @Produces("*/*")
        public javax.ws.rs.core.Response callSessionBean​(@PathParam("version")
                                                         java.lang.String version,
                                                         @Context
                                                         javax.ws.rs.core.HttpHeaders hh,
                                                         @Context
                                                         javax.ws.rs.core.UriInfo ui,
                                                         java.io.InputStream is)
                                                  throws JAXBException,
                                                         java.lang.ClassNotFoundException,
                                                         javax.naming.NamingException,
                                                         java.lang.NoSuchMethodException,
                                                         java.lang.reflect.InvocationTargetException,
                                                         java.lang.IllegalAccessException
        Throws:
        JAXBException
        java.lang.ClassNotFoundException
        javax.naming.NamingException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException