public class WebResponseObjectFactory extends java.lang.Object implements ResponseObjectFactory
WebResponse
and HttpUnit
com.meterware.httpunit.WebResponse
response object creation.Constructor and Description |
---|
WebResponseObjectFactory(java.net.HttpURLConnection theConnection) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getResponseObject(java.lang.String theClassName,
Request theRequest)
Constructs response object that are passed as parameter to
endXXX() and global end methods. |
public WebResponseObjectFactory(java.net.HttpURLConnection theConnection)
theConnection
- the connection object used to connect to the
Cactus server sidepublic java.lang.Object getResponseObject(java.lang.String theClassName, Request theRequest) throws ClientException
ResponseObjectFactory
endXXX()
and global end methods.getResponseObject
in interface ResponseObjectFactory
theClassName
- the class name of the object to constructtheRequest
- the request that was sent by Cactus to the server sideendXXX()
and end()
methodsClientException
- if it fails to construct the response objectResponseObjectFactory.getResponseObject(java.lang.String, org.apache.cactus.Request)
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.