org.glassfish.admin.rest.resources
Class TemplateListOfResource

java.lang.Object
  extended by org.glassfish.admin.rest.resources.TemplateListOfResource

public abstract class TemplateListOfResource
extends java.lang.Object

Author:
Ludovic Champenois ludo@dev.java.net, Rajeshwar Patil

Field Summary
protected  java.util.List<org.jvnet.hk2.config.Dom> entity
           
protected  org.jvnet.hk2.component.Habitat habitat
           
static LocalStringManagerImpl localStrings
           
protected  org.jvnet.hk2.config.Dom parent
           
protected  javax.ws.rs.core.HttpHeaders requestHeaders
           
protected  com.sun.jersey.api.core.ResourceContext resourceContext
           
protected  java.lang.String tagName
           
protected  javax.ws.rs.core.UriInfo uriInfo
           
 
Constructor Summary
TemplateListOfResource()
           
 
Method Summary
protected  ActionReportResult buildActionReportResult()
           
 javax.ws.rs.core.Response createResource(java.util.HashMap<java.lang.String,java.lang.String> data)
           
 javax.ws.rs.core.Response get(int expandLevel)
           
 java.lang.String[][] getCommandResourcesPaths()
           
static java.lang.Class<? extends org.jvnet.hk2.config.ConfigBeanProxy> getElementTypeByName(org.jvnet.hk2.config.Dom parentDom, java.lang.String elementName)
           
 java.util.List<org.jvnet.hk2.config.Dom> getEntity()
           
 java.lang.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:
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(com.sun.jersey.multipart.FormDataMultiPart formData)
           
 void setEntity(java.util.List<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
 

Field Detail

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 java.util.List<org.jvnet.hk2.config.Dom> entity

parent

protected org.jvnet.hk2.config.Dom parent

tagName

protected java.lang.String tagName

localStrings

public static final LocalStringManagerImpl localStrings
Constructor Detail

TemplateListOfResource

public TemplateListOfResource()
Method Detail

get

public javax.ws.rs.core.Response get(int expandLevel)

createResource

public javax.ws.rs.core.Response createResource(java.util.HashMap<java.lang.String,java.lang.String> data)

post

public javax.ws.rs.core.Response post(com.sun.jersey.multipart.FormDataMultiPart formData)

options

public javax.ws.rs.core.Response options()

setEntity

public void setEntity(java.util.List<org.jvnet.hk2.config.Dom> p)

getEntity

public java.util.List<org.jvnet.hk2.config.Dom> getEntity()

setParentAndTagName

public void setParentAndTagName(org.jvnet.hk2.config.Dom parent,
                                java.lang.String tagName)

getPostCommand

public java.lang.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: 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 java.lang.String[][] getCommandResourcesPaths()

getElementTypeByName

public static java.lang.Class<? extends org.jvnet.hk2.config.ConfigBeanProxy> getElementTypeByName(org.jvnet.hk2.config.Dom parentDom,
                                                                                                   java.lang.String elementName)
                                                                                            throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

buildActionReportResult

protected ActionReportResult buildActionReportResult()


Copyright © 2012 GlassFish Community. All Rights Reserved.