Copyright © 2008, 2009 Pedro Agulló Soliveres

com.softwarementors.extjs.djn.router.processor
Class RequestProcessorBase

java.lang.Object
  extended by com.softwarementors.extjs.djn.router.processor.RequestProcessorBase
Direct Known Subclasses:
FormPostRequestProcessorBase, JsonRequestProcessor, PollRequestProcessor

public abstract class RequestProcessorBase
extends java.lang.Object


Constructor Summary
protected RequestProcessorBase(Registry registry, Dispatcher dispatcher, GlobalConfiguration globalConfiguration)
           
 
Method Summary
protected  void appendIndividualResponseJsonString(ResponseBase response, java.lang.StringBuilder result)
           
protected  JsonErrorResponse createJsonServerErrorResponse(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  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  GlobalConfiguration getGlobalConfiguration()
           
protected  com.google.gson.Gson getGson()
           
protected  com.google.gson.JsonParser getJsonParser()
           
protected  RegisteredMethod getMethod(java.lang.String actionName, java.lang.String methodName)
           
protected  Registry getRegistry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestProcessorBase

protected RequestProcessorBase(Registry registry,
                               Dispatcher dispatcher,
                               GlobalConfiguration globalConfiguration)
Method Detail

getGlobalConfiguration

protected GlobalConfiguration getGlobalConfiguration()

getGson

protected com.google.gson.Gson getGson()

getJsonParser

protected com.google.gson.JsonParser getJsonParser()

appendIndividualResponseJsonString

protected void appendIndividualResponseJsonString(ResponseBase response,
                                                  java.lang.StringBuilder result)

getRegistry

protected Registry getRegistry()

getDispatcher

protected Dispatcher getDispatcher()

getDebug

protected boolean getDebug()

createJsonServerErrorResponse

protected JsonErrorResponse createJsonServerErrorResponse(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)

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