public class HttpProtocolState extends java.lang.Object implements ProtocolState
ProtocolHandler
lifecycle
methods. More specifically, we need to pass around the HTTP connection
object as it is created in the lifecycle method that runs the test
and the it is required in the lifecycle methods that create the
response factory instance and that clean up the test (the HTTP connection
is closed if need be).Constructor and Description |
---|
HttpProtocolState() |
Modifier and Type | Method and Description |
---|---|
java.net.HttpURLConnection |
getConnection() |
void |
setConnection(java.net.HttpURLConnection theConnection) |
public void setConnection(java.net.HttpURLConnection theConnection)
theConnection
- the HTTP connection that was used to connect to the
server side to execute the test.public java.net.HttpURLConnection getConnection()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.