public abstract class TemplateListOfResource extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
protected List<Dom> |
entity |
protected org.glassfish.hk2.api.ServiceLocator |
injector |
static LocalStringManagerImpl |
localStrings |
protected Dom |
parent |
protected String |
tagName |
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo| Constructor and Description |
|---|
TemplateListOfResource() |
| Modifier and Type | Method and Description |
|---|---|
protected ActionReportResult |
buildActionReportResult() |
javax.ws.rs.core.Response |
createResource(HashMap<String,String> data) |
javax.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.
|
javax.ws.rs.core.Response |
options() |
javax.ws.rs.core.Response |
post(org.glassfish.jersey.media.multipart.FormDataMultiPart formData) |
void |
setEntity(List<Dom> p) |
void |
setParentAndTagName(Dom parent,
String tagName) |
getAuthenticatedUser, getSubject@Context protected org.glassfish.hk2.api.ServiceLocator injector
protected Dom parent
protected String tagName
public static final LocalStringManagerImpl localStrings
@GET
@Produces(value={"text/html","application/json","application/xml"})
public javax.ws.rs.core.Response get(@QueryParam(value="expandLevel") @DefaultValue(value="1")
int expandLevel)
@POST
@Produces(value={"text/html","application/json","application/xml"})
@Consumes(value={"application/json","application/xml","application/x-www-form-urlencoded"})
public javax.ws.rs.core.Response createResource(HashMap<String,String> data)
@POST @Consumes(value="multipart/form-data") public javax.ws.rs.core.Response post(org.glassfish.jersey.media.multipart.FormDataMultiPart formData)
@OPTIONS
@Produces(value={"application/json","text/html","application/xml"})
public javax.ws.rs.core.Response options()
public String getPostCommand()
public String[][] getCommandResourcesPaths()
public static Class<? extends ConfigBeanProxy> getElementTypeByName(Dom parentDom, String elementName) throws ClassNotFoundException
ClassNotFoundExceptionprotected ActionReportResult buildActionReportResult()
Copyright © 2019. All rights reserved.