org.glassfish.admin.rest.resources
Class TemplateResource
java.lang.Object
org.glassfish.admin.rest.resources.TemplateResource
- Direct Known Subclasses:
- GlassFishDomainResource, PropertiesBagResource.PropertyResource
public class TemplateResource
- extends java.lang.Object
- Author:
- Ludovic Champenois ludo@dev.java.net, Rajeshwar Patil
|
Method Summary |
protected ActionReportResult |
buildActionReportResult(boolean showEntityValues)
|
static java.util.HashMap<java.lang.String,java.lang.String> |
createDataBasedOnForm(com.sun.jersey.multipart.FormDataMultiPart formData)
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: |
javax.ws.rs.core.Response |
createEntity(java.util.HashMap<java.lang.String,java.lang.String> data)
|
javax.ws.rs.core.Response |
delete(java.util.HashMap<java.lang.String,java.lang.String> data)
|
static void |
deleteDataBasedOnForm(com.sun.jersey.multipart.FormDataMultiPart formData)
|
protected java.lang.String[][] |
getCommandResourcesPaths()
|
protected java.lang.String |
getDeleteCommand()
|
org.jvnet.hk2.config.Dom |
getEntity()
|
ActionReportResult |
getEntity(int expandLevel)
|
javax.ws.rs.core.Response |
options()
|
javax.ws.rs.core.Response |
post(com.sun.jersey.multipart.FormDataMultiPart formData)
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: |
protected void |
removeAttributesToBeSkipped(java.util.Map<java.lang.String,java.lang.String> data)
|
void |
setBeanByKey(java.util.List<org.jvnet.hk2.config.Dom> parentList,
java.lang.String id)
|
void |
setEntity(org.jvnet.hk2.config.Dom p)
|
void |
setParentAndTagName(org.jvnet.hk2.config.Dom parent,
java.lang.String tagName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
requestHeaders
@Context
protected javax.ws.rs.core.HttpHeaders requestHeaders
uriInfo
@Context
protected javax.ws.rs.core.UriInfo uriInfo
resourceContext
@Context
protected com.sun.jersey.api.core.ResourceContext resourceContext
habitat
@Context
protected org.jvnet.hk2.component.Habitat habitat
entity
protected org.jvnet.hk2.config.Dom entity
parent
protected org.jvnet.hk2.config.Dom parent
tagName
protected java.lang.String tagName
childModel
protected org.jvnet.hk2.config.ConfigModel childModel
childID
protected java.lang.String childID
localStrings
public static final LocalStringManagerImpl localStrings
TemplateResource
public TemplateResource()
- Creates a new instance of xxxResource
getEntity
public ActionReportResult getEntity(int expandLevel)
createEntity
public javax.ws.rs.core.Response createEntity(java.util.HashMap<java.lang.String,java.lang.String> data)
post
public javax.ws.rs.core.Response post(com.sun.jersey.multipart.FormDataMultiPart formData)
- 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:
delete
public javax.ws.rs.core.Response delete(java.util.HashMap<java.lang.String,java.lang.String> data)
options
public javax.ws.rs.core.Response options()
setEntity
public void setEntity(org.jvnet.hk2.config.Dom p)
getEntity
public org.jvnet.hk2.config.Dom getEntity()
setParentAndTagName
public void setParentAndTagName(org.jvnet.hk2.config.Dom parent,
java.lang.String tagName)
deleteDataBasedOnForm
public static void deleteDataBasedOnForm(com.sun.jersey.multipart.FormDataMultiPart formData)
createDataBasedOnForm
public static java.util.HashMap<java.lang.String,java.lang.String> createDataBasedOnForm(com.sun.jersey.multipart.FormDataMultiPart formData)
- 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:
setBeanByKey
public void setBeanByKey(java.util.List<org.jvnet.hk2.config.Dom> parentList,
java.lang.String id)
buildActionReportResult
protected ActionReportResult buildActionReportResult(boolean showEntityValues)
removeAttributesToBeSkipped
protected void removeAttributesToBeSkipped(java.util.Map<java.lang.String,java.lang.String> data)
getCommandResourcesPaths
protected java.lang.String[][] getCommandResourcesPaths()
getDeleteCommand
protected java.lang.String getDeleteCommand()
Copyright © 2012 GlassFish Community. All Rights Reserved.