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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected com.thoughtworks.xstream.io.HierarchicalStreamDriverprotected Stringprotected InputStreamprotected static final Stringprotected static final Stringstatic final Stringprotected booleanprotected static final Loggerprotected Stringprotected Stringprotected Stringprotected com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultErrorprotected static final StringFields 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_COMMANDFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoProcess(IExecutionContext iExecutionContext) protected StringgetCommand(IExecutionContext.IRequest iRequest, InputStream is) protected com.axemble.vdoc.sdk.flow.commands.interfaces.ICommandHandlerprotected StringgetModule(IExecutionContext.IRequest iRequest) protected com.thoughtworks.xstream.XStreamvoidparseRequest(IExecutionContext.IRequest iRequest) protected voidserializeError(com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result, OutputStream os) protected voidserializeError(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:
parseRequestin interfacecom.axemble.vdp.ui.framework.foundation.controllers.ICustomController- Throws:
IOException- See Also:
-
doProcess
- Specified by:
doProcessin interfacecom.axemble.vdp.ui.framework.foundation.controllers.ICustomController- Overrides:
doProcessin 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
-