Class 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

public class Dispatcher extends BaseController implements ICustomAuthenticationController
  • Field Details

    • log

      protected static final Logger log
    • JSON

      protected static final String JSON
      See Also:
    • JSONFORMATTED

      protected static final String JSONFORMATTED
      See Also:
    • XML

      protected static final String XML
      See Also:
    • KEY_OLD_CONTROLLER_NAME

      public static final String KEY_OLD_CONTROLLER_NAME
      See Also:
    • flowMode

      protected String flowMode
    • command

      protected String command
    • module

      protected String module
    • is

      protected InputStream is
    • driver

      protected com.thoughtworks.xstream.io.HierarchicalStreamDriver driver
    • oldControllerName

      protected String oldControllerName
    • oldCommand

      protected String 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

      public void parseRequest(IExecutionContext.IRequest iRequest) throws IOException
      Specified by:
      parseRequest in interface com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
      Throws:
      IOException
      See Also:
      • ICustomController.parseRequest(IExecutionContext.IRequest)
    • doProcess

      public IExecutionContext doProcess(IExecutionContext iExecutionContext) throws IOException
      Specified by:
      doProcess in interface com.axemble.vdp.ui.framework.foundation.controllers.ICustomController
      Overrides:
      doProcess in class BaseController
      Throws:
      IOException
      See Also:
    • serializeError

      protected void serializeError(com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result, OutputStream os)
      Parameters:
      result - the result
      os - the os
    • serializeError

      protected void serializeError(com.axemble.vdoc.sdk.flow.commands.impl.common.beans.ResultError result, OutputStream os, String encoding)
      Parameters:
      result - the result
      os - the os
      encoding - the encoding
    • getXStreamSerializer

      protected com.thoughtworks.xstream.XStream getXStreamSerializer()
    • getCommand

      protected String getCommand(IExecutionContext.IRequest iRequest, InputStream is) throws Exception
      Parameters:
      iRequest - iRequest
      is - is
      Returns:
      the command
      Throws:
      Exception - the exception
    • getModule

      protected String getModule(IExecutionContext.IRequest iRequest) throws Exception
      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