com.sun.faban.harness.webclient
Class Uploader

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

public class Uploader
extends Object

This is a controller class.

Author:
Sheetal Patil

Constructor Summary
Uploader()
           
 
Method Summary
 String checkRuns(HttpServletRequest request, HttpServletResponse response)
          Checks the existence of the runs on the repository.
 void updateRunDesc(HttpServletRequest req, HttpServletResponse resp)
          Updates the run description.
 void updateTagsFile(HttpServletRequest req, HttpServletResponse resp)
          Updates the tags file.
 String uploadRuns(HttpServletRequest request, HttpServletResponse response)
          Responsible for uploading the runs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Uploader

public Uploader()
Method Detail

checkRuns

public String checkRuns(HttpServletRequest request,
                        HttpServletResponse response)
                 throws IOException,
                        ServletException
Checks the existence of the runs on the repository.

Parameters:
request -
response -
Returns:
String
Throws:
IOException
ServletException

updateTagsFile

public void updateTagsFile(HttpServletRequest req,
                           HttpServletResponse resp)
                    throws IOException
Updates the tags file.

Parameters:
req -
resp -
Throws:
IOException

updateRunDesc

public void updateRunDesc(HttpServletRequest req,
                          HttpServletResponse resp)
                   throws IOException
Updates the run description.

Parameters:
req -
resp -
Throws:
IOException

uploadRuns

public String uploadRuns(HttpServletRequest request,
                         HttpServletResponse response)
                  throws IOException,
                         ServletException,
                         ClassNotFoundException
Responsible for uploading the runs.

Parameters:
request -
response -
Returns:
String
Throws:
IOException
ServletException
ClassNotFoundException