Class TemplateListOfResource
- java.lang.Object
-
- org.glassfish.admin.rest.resources.AbstractResource
-
- org.glassfish.admin.rest.resources.TemplateListOfResource
-
public abstract class TemplateListOfResource extends AbstractResource
- Author:
- Ludovic Champenois [email protected], Rajeshwar Patil
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Dom>
entity
protected org.glassfish.hk2.api.ServiceLocator
injector
static LocalStringManagerImpl
localStrings
protected Dom
parent
protected String
tagName
-
Fields inherited from class org.glassfish.admin.rest.resources.AbstractResource
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo
-
-
Constructor Summary
Constructors Constructor Description TemplateListOfResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActionReportResult
buildActionReportResult()
jakarta.ws.rs.core.Response
createResource(HashMap<String,String> data)
jakarta.ws.rs.core.Response
get(int expandLevel)
String[][]
getCommandResourcesPaths()
static Class<? extends ConfigBeanProxy>
getElementTypeByName(Dom parentDom, String elementName)
List<Dom>
getEntity()
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.jakarta.ws.rs.core.Response
options()
jakarta.ws.rs.core.Response
post(org.glassfish.jersey.media.multipart.FormDataMultiPart formData)
void
setEntity(List<Dom> p)
void
setParentAndTagName(Dom parent, String tagName)
-
Methods inherited from class org.glassfish.admin.rest.resources.AbstractResource
getAuthenticatedUser, getSubject
-
-
-
-
Field Detail
-
injector
@Context protected org.glassfish.hk2.api.ServiceLocator injector
-
parent
protected Dom parent
-
tagName
protected String tagName
-
localStrings
public static final LocalStringManagerImpl localStrings
-
-
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()
-
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()
-
getElementTypeByName
public static Class<? extends ConfigBeanProxy> getElementTypeByName(Dom parentDom, String elementName) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
buildActionReportResult
protected ActionReportResult buildActionReportResult()
-
-