Class TemplateListOfResource

    • Field Detail

      • injector

        @Context
        protected org.glassfish.hk2.api.ServiceLocator injector
      • entity

        protected List<Dom> entity
      • parent

        protected Dom parent
      • tagName

        protected String tagName
    • Constructor Detail

      • TemplateListOfResource

        public TemplateListOfResource()
    • Method Detail

      • get

        @GET
        @Produces({"text/html","application/json","application/xml"})
        public jakarta.ws.rs.core.Response get​(@QueryParam("expandLevel") @DefaultValue("1")
                                               int expandLevel)
      • createResource

        @POST
        @Produces({"text/html","application/json","application/xml"})
        @Consumes({"application/json","application/xml","application/x-www-form-urlencoded"})
        public jakarta.ws.rs.core.Response createResource​(HashMap<String,​String> data)
      • post

        @POST
        @Consumes("multipart/form-data")
        public jakarta.ws.rs.core.Response post​(org.glassfish.jersey.media.multipart.FormDataMultiPart formData)
      • options

        @OPTIONS
        @Produces({"application/json","text/html","application/xml"})
        public jakarta.ws.rs.core.Response options()
      • setEntity

        public void setEntity​(List<Dom> p)
      • getEntity

        public List<Dom> getEntity()
      • setParentAndTagName

        public void setParentAndTagName​(Dom parent,
                                        String tagName)
      • getPostCommand

        public String getPostCommand()
        allows for remote files to be put in a tmp area and we pass the local location of this file to the corresponding command instead of the content of the file * Yu need to add enctype="multipart/form-data" in the form for ex: <form action="http://localhost:4848/management/domain/applications/application" method="post" enctype="multipart/form-data"> then any param of type="file" will be uploaded, stored locally and the param will use the local location on the server side (ie. just the path)
      • getCommandResourcesPaths

        public String[][] getCommandResourcesPaths()