nextapp.echoservlet.filetransferui
Class UploadForm

java.lang.Object
  extended by nextapp.echoservlet.filetransferui.UploadForm
All Implemented Interfaces:
java.io.Serializable, ClientActionProducer, Service

public class UploadForm
extends java.lang.Object
implements ClientActionProducer, java.io.Serializable, Service

Renders an HTML page containing a form with a single file upload elemnet.

See Also:
Serialized Form

Constructor Summary
UploadForm(UploadSelectUI ui)
          Creates a form for the specified UploadSelect peer.
 
Method Summary
 void clientAction(java.lang.String command)
          Called when the user causes an action from the client.
 Id getId()
          Returns a unique identifier for this service.
 void service(Connection conn)
          Services an HTTP request.
 void submitController()
          Notifies the upload form that it should cause the controller's form to be submitted when it is next rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadForm

public UploadForm(UploadSelectUI ui)
Creates a form for the specified UploadSelect peer.

Parameters:
ui - The UploadSelect peer that this form will serve.
Method Detail

clientAction

public void clientAction(java.lang.String command)
Description copied from interface: ClientActionProducer
Called when the user causes an action from the client.

Specified by:
clientAction in interface ClientActionProducer
Parameters:
command - The action command generated by the client.
See Also:
ClientActionProducer.clientAction(String)

getId

public Id getId()
Description copied from interface: Service
Returns a unique identifier for this service.

Specified by:
getId in interface Service
Returns:
A unique identifier for this service.
See Also:
Service.getId()

service

public void service(Connection conn)
             throws java.io.IOException
Description copied from interface: Service
Services an HTTP request. Information about the HTTP request as well as methods for issuing a response are available from the provided Connection object.

Specified by:
service in interface Service
Parameters:
conn - A Connection object which wraps HttpServletRequest and HttpServletResponse objects and provides access to the facilities of the Echo application container.
Throws:
java.io.IOException - in the event of errors related to processing the HTTP request or producing a response.
See Also:
Service.service(Connection)

submitController

public void submitController()
Notifies the upload form that it should cause the controller's form to be submitted when it is next rendered.