com.sibvisions.rad.server.http
Class UploadServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.sibvisions.rad.server.http.ResourceServlet
              extended by com.sibvisions.rad.server.http.UploadServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class UploadServlet
extends ResourceServlet

The UploadServlet handles the upload of files via http connection. A client is able transmit a file as octet stream. stream.

See Also:
Serialized Form

Field Summary
static String PARAM_CLOSE
          the URL parameter for closing the window.
static String PARAM_UPLOADBUTTON
          the URL parameter for the upload button text.
static String PARAM_WAIT
          the URL parameter for waiting and aborting.
static String PARAM_WEBSTART
          the URL parameter for the webstart info.
static String UPLOADDIR
          the directory which contains the resource files for the client.
 
Fields inherited from class com.sibvisions.rad.server.http.ResourceServlet
PARAM_APPLICATION, PARAM_CANCELBUTTON, PARAM_CONURL, PARAM_INFOTEXT, PARAM_KEY, PARAM_RESOURCE, PARAM_TITLE
 
Constructor Summary
UploadServlet()
           
 
Method Summary
 void doGet(HttpServletRequest pRequest, HttpServletResponse pResponse)
          
 void doPost(HttpServletRequest pRequest, HttpServletResponse pResponse)
          
protected  String getResourceDirectoryName()
          Gets the name of the resource directory.
 
Methods inherited from class com.sibvisions.rad.server.http.ResourceServlet
getFileItemStream, getFileName, getRequestURI, sendFile
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_WAIT

public static final String PARAM_WAIT
the URL parameter for waiting and aborting.

See Also:
Constant Field Values

PARAM_CLOSE

public static final String PARAM_CLOSE
the URL parameter for closing the window.

See Also:
Constant Field Values

PARAM_UPLOADBUTTON

public static final String PARAM_UPLOADBUTTON
the URL parameter for the upload button text.

See Also:
Constant Field Values

PARAM_WEBSTART

public static final String PARAM_WEBSTART
the URL parameter for the webstart info.

See Also:
Constant Field Values

UPLOADDIR

public static final String UPLOADDIR
the directory which contains the resource files for the client.

See Also:
Constant Field Values
Constructor Detail

UploadServlet

public UploadServlet()
Method Detail

getResourceDirectoryName

protected String getResourceDirectoryName()
Gets the name of the resource directory.

Specified by:
getResourceDirectoryName in class ResourceServlet
Returns:
the resource directory name

doGet

public void doGet(HttpServletRequest pRequest,
                  HttpServletResponse pResponse)
           throws ServletException,
                  IOException

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest pRequest,
                   HttpServletResponse pResponse)
            throws ServletException,
                   IOException

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.