org.openqa.selenium.server.htmlrunner
Class SingleTestSuiteResourceHandler

java.lang.Object
  extended by org.openqa.jetty.http.handler.AbstractHttpHandler
      extended by org.openqa.jetty.http.handler.ResourceHandler
          extended by org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler
All Implemented Interfaces:
java.io.Serializable, HttpHandler, LifeCycle

public class SingleTestSuiteResourceHandler
extends ResourceHandler

Generates a test suite table designed to run a single Selenium test; to use it, point TestRunner.html to /singleTest/http://my.com/single/test.html

Author:
dfabulich
See Also:
Serialized Form

Constructor Summary
SingleTestSuiteResourceHandler()
           
 
Method Summary
 void handle(java.lang.String pathInContext, java.lang.String pathParams, HttpRequest request, HttpResponse response)
          Handles the HTTP request and generates the suite table
 
Methods inherited from class org.openqa.jetty.http.handler.ResourceHandler
getAllowedMethods, getAllowedString, getMinGzipLength, getRedirectWelcome, getResource, handleGet, isAcceptRanges, isDirAllowed, isMethodAllowed, sendData, setAcceptRanges, setAllowedMethods, setDirAllowed, setMinGzipLength, setRedirectWelcome, start, stop, writeHeaders
 
Methods inherited from class org.openqa.jetty.http.handler.AbstractHttpHandler
getHttpContext, getName, handleTrace, initialize, isStarted, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleTestSuiteResourceHandler

public SingleTestSuiteResourceHandler()
Method Detail

handle

public void handle(java.lang.String pathInContext,
                   java.lang.String pathParams,
                   HttpRequest request,
                   HttpResponse response)
            throws HttpException,
                   java.io.IOException
Handles the HTTP request and generates the suite table

Specified by:
handle in interface HttpHandler
Overrides:
handle in class ResourceHandler
Parameters:
pathInContext - The context path
pathParams - Path parameters such as encoded Session ID
request - The HttpRequest request
response - The HttpResponse response
Throws:
HttpException
java.io.IOException


Copyright © 2011. All Rights Reserved.