Package com.axemble.vdoc.sdk.flow
Class Dispatcher
java.lang.Object
com.axemble.vdoc.sdk.controllers.BaseController
com.axemble.vdoc.sdk.flow.Dispatcher
- All Implemented Interfaces:
ICustomAuthenticationController
,com.axemble.vdp.ui.framework.files.TemporaryFileManager
,com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
,com.axemble.vdp.utils.parameters.FileRecipient
,com.axemble.vdp.utils.parameters.ParamsHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class com.axemble.vdoc.sdk.controllers.BaseController
BaseController.Result
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected com.thoughtworks.xstream.io.HierarchicalStreamDriver
protected String
protected InputStream
protected static final String
protected static final String
static final String
protected boolean
protected static final Logger
protected String
protected String
protected String
protected com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError
protected static final String
Fields inherited from class com.axemble.vdoc.sdk.controllers.BaseController
LOGGER, STATUS_KEY_AUTH_FAILED, STATUS_KEY_CAS_NOT_ACTIVATED, STATUS_KEY_INTERNAL_ERROR, STATUS_KEY_ISSUER_NOT_AUTHORIZED, STATUS_KEY_LOGGED_OUT, STATUS_KEY_LOGIN_SUCCESS, STATUS_KEY_REDIRECT_TO_LOGOUT, STATUS_KEY_REDIRECT_TO_LOGOUT_REDIRECT_URL, STATUS_KEY_REDIRECT_TO_OPENID_PROVIDER, STATUS_KEY_SESSION_DOES_N0T_MATCH, STATUS_KEY_UNAUTHORIZED_IP_ADDRESS, STATUS_KEY_UNKNOWN_COMMAND
Fields inherited from interface com.axemble.vdp.utils.parameters.ParamsHandler
ERROR_EXCEED_ELEM_SIZE, ERROR_EXCEED_TOTAL_SIZE, ERROR_NOT_COMPLETED, ERROR_READ_FAILED, EXCEED_ELEM_NUMBER, NO_ERROR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoProcess
(IExecutionContext iExecutionContext) protected String
getCommand
(IExecutionContext.IRequest iRequest, InputStream is) protected com.axemble.vdoc.sdk.flow.commands.interfaces.ICommandHandler
protected String
getModule
(IExecutionContext.IRequest iRequest) protected com.thoughtworks.xstream.XStream
void
parseRequest
(IExecutionContext.IRequest iRequest) protected void
serializeError
(com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result, OutputStream os) protected void
serializeError
(com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result, OutputStream os, String encoding) Methods inherited from class com.axemble.vdoc.sdk.controllers.BaseController
buildResponse, checkSecurity, createTempFile, findFileRecipient, findStringRecipient, findXmlRecipient, getAttachments, getDirectoryModule, getMaxFileSize, getPortalModule, getProjectModule, getWorkflowModule, isAuthorized, loadComplete, prepareLoad, removeTempFile
-
Field Details
-
log
-
JSON
- See Also:
-
JSONFORMATTED
- See Also:
-
XML
- See Also:
-
KEY_OLD_CONTROLLER_NAME
- See Also:
-
flowMode
-
command
-
module
-
is
-
driver
protected com.thoughtworks.xstream.io.HierarchicalStreamDriver driver -
oldControllerName
-
oldCommand
-
killSession
protected boolean killSession -
result
protected com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result
-
-
Constructor Details
-
Dispatcher
public Dispatcher()
-
-
Method Details
-
parseRequest
- Specified by:
parseRequest
in interfacecom.axemble.vdp.ui.framework.foundation.controllers.ICustomController
- Throws:
IOException
- See Also:
-
doProcess
- Specified by:
doProcess
in interfacecom.axemble.vdp.ui.framework.foundation.controllers.ICustomController
- Overrides:
doProcess
in classBaseController
- Throws:
IOException
- See Also:
-
serializeError
protected void serializeError(com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result, OutputStream os) - Parameters:
result
- the resultos
- the os
-
serializeError
protected void serializeError(com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result, OutputStream os, String encoding) - Parameters:
result
- the resultos
- the osencoding
- the encoding
-
getXStreamSerializer
protected com.thoughtworks.xstream.XStream getXStreamSerializer() -
getCommand
- Parameters:
iRequest
- iRequestis
- is- Returns:
- the command
- Throws:
Exception
- the exception
-
getModule
- Parameters:
iRequest
- iRequest- Returns:
- the module
- Throws:
Exception
-
getHandler
protected com.axemble.vdoc.sdk.flow.commands.interfaces.ICommandHandler getHandler() throws Exception- Returns:
- the
ICommandHandler
- Throws:
Exception
- the exception
-