Copyright © 2008, 2009 Pedro Agulló Soliveres

com.softwarementors.extjs.djn.router
Class UploadFormPostRequestProcessor

java.lang.Object
  extended by com.softwarementors.extjs.djn.router.UploadFormPostRequestProcessor

public class UploadFormPostRequestProcessor
extends java.lang.Object


Constructor Summary
UploadFormPostRequestProcessor(Registry registry, com.softwarementors.extjs.djn.router.Dispatcher dispatcher, boolean debugMode)
           
 
Method Summary
protected  void appendIndividualResponseJsonString(com.softwarementors.extjs.djn.router.ResponseBase response, java.lang.StringBuilder result)
           
static org.apache.commons.fileupload.servlet.ServletFileUpload createFileUploader()
           
protected  com.softwarementors.extjs.djn.router.JsonErrorResponse createJsonServerErrorResponse(com.softwarementors.extjs.djn.router.RequestBase request, java.lang.Throwable t)
           
protected  java.lang.Object dispatch(java.lang.Class<?> instanceClass, java.lang.reflect.Method method, java.lang.Object[] parameters)
           
protected  java.lang.Object dispatch(java.lang.String actionName, java.lang.String methodName, java.lang.Object[] parameters)
           
protected  boolean getDebug()
           
protected static java.util.Map<java.lang.String,java.lang.String> getDecodedRequestParameters(java.lang.String requestString)
           
protected  com.softwarementors.extjs.djn.router.Dispatcher getDispatcher()
           
protected static java.lang.String getExceptionMessage(java.lang.Throwable t)
           
protected static java.lang.Throwable getExceptionToReport(java.lang.Throwable t)
           
protected  java.lang.String getExceptionWhere(java.lang.Throwable t)
           
protected  com.google.gson.Gson getGson()
           
protected  RegisteredMethod getMethod(java.lang.String actionName, java.lang.String methodName)
           
protected  Registry getRegistry()
           
 void handleFileUploadException(org.apache.commons.fileupload.FileUploadException e)
           
 void process(java.util.List<org.apache.commons.fileupload.FileItem> fileItems, java.io.Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadFormPostRequestProcessor

public UploadFormPostRequestProcessor(Registry registry,
                                      com.softwarementors.extjs.djn.router.Dispatcher dispatcher,
                                      boolean debugMode)
Method Detail

process

public void process(java.util.List<org.apache.commons.fileupload.FileItem> fileItems,
                    java.io.Writer writer)
             throws java.io.IOException
Throws:
java.io.IOException

createFileUploader

public static org.apache.commons.fileupload.servlet.ServletFileUpload createFileUploader()

handleFileUploadException

public void handleFileUploadException(org.apache.commons.fileupload.FileUploadException e)

getRegistry

protected Registry getRegistry()

getDispatcher

protected com.softwarementors.extjs.djn.router.Dispatcher getDispatcher()

getDebug

protected boolean getDebug()

createJsonServerErrorResponse

protected com.softwarementors.extjs.djn.router.JsonErrorResponse createJsonServerErrorResponse(com.softwarementors.extjs.djn.router.RequestBase request,
                                                                                               java.lang.Throwable t)

getExceptionToReport

protected static java.lang.Throwable getExceptionToReport(java.lang.Throwable t)

getExceptionMessage

protected static java.lang.String getExceptionMessage(java.lang.Throwable t)

getExceptionWhere

protected java.lang.String getExceptionWhere(java.lang.Throwable t)

getGson

protected com.google.gson.Gson getGson()

appendIndividualResponseJsonString

protected void appendIndividualResponseJsonString(com.softwarementors.extjs.djn.router.ResponseBase response,
                                                  java.lang.StringBuilder result)

getMethod

protected RegisteredMethod getMethod(java.lang.String actionName,
                                     java.lang.String methodName)

dispatch

protected java.lang.Object dispatch(java.lang.Class<?> instanceClass,
                                    java.lang.reflect.Method method,
                                    java.lang.Object[] parameters)

dispatch

protected java.lang.Object dispatch(java.lang.String actionName,
                                    java.lang.String methodName,
                                    java.lang.Object[] parameters)

getDecodedRequestParameters

protected static java.util.Map<java.lang.String,java.lang.String> getDecodedRequestParameters(java.lang.String requestString)

Copyright © 2008, 2009 Pedro Agulló Soliveres