com.cinecolombia.cinecolombia.control.web.handlers
Class ParametrosGlobalesFlowHandler

java.lang.Object
  |
  +--com.cinecolombia.cinecolombia.control.web.handlers.ParametrosGlobalesFlowHandler
All Implemented Interfaces:
FlowHandler

public class ParametrosGlobalesFlowHandler
extends java.lang.Object
implements FlowHandler

parametrosGlobales usecase: flow handler for deciding output screen after processing an action

Author:
CincoSOFT
Created:
Mayo 2003

Field Summary
private  Debug debug
           
 
Constructor Summary
ParametrosGlobalesFlowHandler()
           
 
Method Summary
 void doEnd(javax.servlet.http.HttpServletRequest request)
          optional execution after processFlow method
 void doStart(javax.servlet.http.HttpServletRequest request)
          optional execution before processFlow method
private  java.lang.String processAnswer(int actionType, javax.servlet.http.HttpServletRequest request, java.lang.Object answer, javax.servlet.ServletContext context)
          method for processing the answer to a ParametrosGlobalesEvent
 java.lang.String processFlow(javax.servlet.http.HttpServletRequest request, java.lang.Object answer, javax.servlet.ServletContext context)
          principal method for deciding output screen after processing an action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private Debug debug
Constructor Detail

ParametrosGlobalesFlowHandler

public ParametrosGlobalesFlowHandler()
Method Detail

doStart

public void doStart(javax.servlet.http.HttpServletRequest request)
optional execution before processFlow method

Specified by:
doStart in interface FlowHandler
Parameters:
request - HTTP request

processFlow

public java.lang.String processFlow(javax.servlet.http.HttpServletRequest request,
                                    java.lang.Object answer,
                                    javax.servlet.ServletContext context)
                             throws CinecolombiaEventException
principal method for deciding output screen after processing an action

Specified by:
processFlow in interface FlowHandler
Parameters:
request - of MainServlet
answer - of the action
context - web context
Returns:
String with the number of the output screen
Throws:
CinecolombiaEventException

processAnswer

private java.lang.String processAnswer(int actionType,
                                       javax.servlet.http.HttpServletRequest request,
                                       java.lang.Object answer,
                                       javax.servlet.ServletContext context)
                                throws CinecolombiaEventException
method for processing the answer to a ParametrosGlobalesEvent

Parameters:
actionType - action type
request - of MainServlet
answer - of the action
context - web context
Returns:
String with the number of the output screen
Throws:
CinecolombiaEventException

doEnd

public void doEnd(javax.servlet.http.HttpServletRequest request)
optional execution after processFlow method

Specified by:
doEnd in interface FlowHandler
Parameters:
request - HTTP request