|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ibm.btt.cs.ajax.FileUploadServlet
public class FileUploadServlet
This class extends HttpServlet class used to handle file updload scenario. It will save the uploaded file in file system or configured DB
Field Summary | |
---|---|
static java.lang.String |
CANCELPENDING
|
static java.lang.String |
CHECK_DURATION
check duration paramter for servlet |
static long |
checkDuration
request time out check duration, in milliseconds. |
static java.lang.String |
FILE_HANDLERS
constant id of file handlers in btt.xml |
static java.lang.String |
FILE_OVERSIZE
|
static java.lang.String |
FILEUPLOADACTION
|
static java.lang.String |
HANDLER_CLASS
|
static java.lang.String |
QUERYSIZE
|
static java.lang.String |
REQ_EXPIRED
add a request expired info for a request |
static java.lang.String |
REQ_TIMEOUT
add a time out info into request attribute |
static java.lang.String |
UUID
|
Constructor Summary | |
---|---|
FileUploadServlet()
|
Method Summary | |
---|---|
void |
destroy()
|
protected void |
doDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
handle file delete request |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected AbstractFileHandler |
getFileHandler(javax.servlet.http.HttpServletRequest request)
get proper file handler from the request |
void |
init(javax.servlet.ServletConfig config)
initialize paramters |
void |
initParams(javax.servlet.ServletConfig config)
initialize paramters |
void |
start()
Start request timeout check. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
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 REQ_TIMEOUT
public static final java.lang.String REQ_EXPIRED
public static final java.lang.String FILE_HANDLERS
public static final java.lang.String HANDLER_CLASS
public static final java.lang.String UUID
public static final java.lang.String FILEUPLOADACTION
public static final java.lang.String QUERYSIZE
public static final java.lang.String CANCELPENDING
public static final java.lang.String FILE_OVERSIZE
public static long checkDuration
public static final java.lang.String CHECK_DURATION
Constructor Detail |
---|
public FileUploadServlet()
Method Detail |
---|
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doDelete
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected AbstractFileHandler getFileHandler(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
request
-
javax.servlet.ServletException
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void start()
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void initParams(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
javax.servlet.ServletException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |