com.sun.faban.harness.webclient
Class ResultAction

java.lang.Object
  extended by com.sun.faban.harness.webclient.ResultAction

public class ResultAction
extends Object

Controller handling actions from the result list screen.


Nested Class Summary
static class ResultAction.EditAnalysisModel
          The model object for the EditAnalysis screen view.
 class ResultAction.EditArchiveModel
          The model object for the EditArchive screen view.
 
Constructor Summary
ResultAction()
           
 
Method Summary
 String analyze(HttpServletRequest request, HttpServletResponse response)
          This method is responsible for analyzing the runs.
 String archive(HttpServletRequest request, HttpServletResponse response)
          This method is responsible for archiving the runs to the repository.
static void editXML(RunResult result)
          Edit run.xml file.
 void profileTagList(HttpServletRequest req, HttpServletResponse resp)
          Obtains the tags list for each profile.
 String takeAction(HttpServletRequest request, HttpServletResponse response)
          Checks for actions the user asked to perform and take the appropriate action.
static HashSet<String> uploadRuns(String[] runIds, HashSet<File> uploadSet, HashSet<String> replaceSet)
          This method is responsible for uploading the runs to repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultAction

public ResultAction()
Method Detail

takeAction

public String takeAction(HttpServletRequest request,
                         HttpServletResponse response)
                  throws IOException,
                         ParseException
Checks for actions the user asked to perform and take the appropriate action.

Parameters:
request - The request
response - The response
Returns:
The name of the jsp view to forward this request
Throws:
IOException - If there are problems reading or writing data
ParseException - Error parsing input

profileTagList

public void profileTagList(HttpServletRequest req,
                           HttpServletResponse resp)
                    throws IOException
Obtains the tags list for each profile.

Parameters:
req -
resp -
Throws:
IOException

analyze

public String analyze(HttpServletRequest request,
                      HttpServletResponse response)
               throws IOException
This method is responsible for analyzing the runs.

Parameters:
request -
response -
Returns:
string
Throws:
IOException

archive

public String archive(HttpServletRequest request,
                      HttpServletResponse response)
               throws IOException,
                      FileNotFoundException,
                      ParseException,
                      ClassNotFoundException
This method is responsible for archiving the runs to the repository.

Parameters:
request -
response -
Returns:
String
Throws:
IOException
FileNotFoundException
ParseException
ClassNotFoundException

editXML

public static void editXML(RunResult result)
Edit run.xml file.

Parameters:
result - The run result object to edit

uploadRuns

public static HashSet<String> uploadRuns(String[] runIds,
                                         HashSet<File> uploadSet,
                                         HashSet<String> replaceSet)
                                  throws IOException
This method is responsible for uploading the runs to repository.

Parameters:
uploadSet -
replaceSet -
Returns:
HashSet
Throws:
IOException