|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.webcontainer.filetransfer.UploadFormService
public class UploadFormService
Renders an HTML page containing a form with a single file upload element
and an optional Send button, based on the UploadSelect that
is given.
| Field Summary | |
|---|---|
static java.lang.String |
FILE_PARAMETER_NAME
|
static UploadFormService |
INSTANCE
|
static Service |
UPLOAD_SERVICE
Service to provide supporting JavaScript library. |
| Fields inherited from interface nextapp.echo2.webrender.Service |
|---|
DO_NOT_CACHE |
| Constructor Summary | |
|---|---|
UploadFormService()
|
|
| Method Summary | |
|---|---|
java.lang.String |
createUri(ContainerInstance containerInstance,
java.lang.String imageId)
Creates a URI to execute a specific UploadFormService |
protected java.lang.String |
ensureValue(java.lang.String value,
java.lang.String defaultValue)
|
java.lang.String |
getId()
Returns the unique identifier of this service. |
protected java.lang.String |
getResourceProperty(java.lang.String key,
java.util.Locale locale)
|
int |
getVersion()
Returns the version of the service to be retrieved. |
void |
service(Connection conn)
Services an HTTP request. |
protected void |
service(Connection conn,
UploadSelect uploadSelect)
|
protected void |
serviceBadRequest(Connection conn,
java.lang.String message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_PARAMETER_NAME
public static final UploadFormService INSTANCE
public static final Service UPLOAD_SERVICE
| Constructor Detail |
|---|
public UploadFormService()
| Method Detail |
|---|
public java.lang.String createUri(ContainerInstance containerInstance,
java.lang.String imageId)
UploadFormService
containerInstance - the relevant application container instance.imageId - the unique id to retrieve the image from the
ContainerInstancepublic java.lang.String getId()
Service
getId in interface ServiceService.getId()public int getVersion()
ServicegetVersion() should return distinct values whenever the
service's content may have changed.
getVersion in interface ServiceService.getVersion()
public void service(Connection conn)
throws java.io.IOException
Service
service in interface Serviceconn - A Connection object which wraps
HttpServletRequest and
HttpServletResponse objects and provides
access to the facilities of the Echo application container.
java.io.IOException - in the event of errors related to processing the
HTTP request or producing a response.Service.service(Connection)
protected void service(Connection conn,
UploadSelect uploadSelect)
throws java.io.IOException
java.io.IOException
protected java.lang.String ensureValue(java.lang.String value,
java.lang.String defaultValue)
protected java.lang.String getResourceProperty(java.lang.String key,
java.util.Locale locale)
protected void serviceBadRequest(Connection conn,
java.lang.String message)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||