|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cactus.internal.client.connector.http.HttpProtocolHandler
Implementation for the HTTP protocol. It connects to the redirector proxy using HTTP and passing Cactus information (test case to run, etc) as HTTP GET parameters.
Constructor Summary | |
HttpProtocolHandler(WebConfiguration theConfiguration)
|
Method Summary | |
void |
afterTest(ProtocolState theState)
Let the connector implementor clean up after the test. |
Request |
createRequest()
Create a request object that will be passed to the begin()
and beginXXX() methods. |
ResponseObjectFactory |
createResponseObjectFactory(ProtocolState theState)
Create a factory that is used by the core to create test response object that will be passed to the endXXX() and end()
methods. |
ProtocolState |
runTest(junit.framework.Test theDelegatedTest,
junit.framework.Test theWrappedTest,
Request theRequest)
Connect to the server side (to the redirector proxy), passing all information to execute the test there, trigger the test execution and gather the test results. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpProtocolHandler(WebConfiguration theConfiguration)
theConfiguration
- configuration dataMethod Detail |
public Request createRequest()
ProtocolHandler
begin()
and beginXXX()
methods. They will in turn enrich it with
values set by the user.
createRequest
in interface ProtocolHandler
ProtocolHandler.createRequest()
public ProtocolState runTest(junit.framework.Test theDelegatedTest, junit.framework.Test theWrappedTest, Request theRequest) throws java.lang.Throwable
ProtocolHandler
runTest
in interface ProtocolHandler
theDelegatedTest
- the Cactus test to executetheWrappedTest
- optionally specify a pure JUnit test case that is
being wrapped and will be executed on the server sidetheRequest
- the request containing data to connect to the
redirector proxy
ProtocolHandler.createResponseObjectFactory(org.apache.cactus.spi.client.connector.ProtocolState)
and
ProtocolHandler.afterTest(org.apache.cactus.spi.client.connector.ProtocolState)
later on
java.lang.Throwable
- any error that occurred when connecting to the
server side, when executing the test or when gathering the
test result.ProtocolHandler.runTest(Test, Test, Request)
public ResponseObjectFactory createResponseObjectFactory(ProtocolState theState)
ProtocolHandler
endXXX()
and end()
methods.
createResponseObjectFactory
in interface ProtocolHandler
theState
- any state information that has been preserved from the
ProtocolHandler.runTest(junit.framework.Test, junit.framework.Test, org.apache.cactus.Request)
method (e.g. the HTTP connection object)
ProtocolHandler.createResponseObjectFactory(ProtocolState)
public void afterTest(ProtocolState theState) throws java.io.IOException
ProtocolHandler
afterTest
in interface ProtocolHandler
theState
- any state information that has been preserved from the
ProtocolHandler.runTest(junit.framework.Test, junit.framework.Test, org.apache.cactus.Request)
method (e.g. the HTTP connection object)
java.io.IOException
ProtocolHandler.afterTest(ProtocolState)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |