org.apache.cactus.client
Class WebResponseObjectFactory

java.lang.Object
  extended byorg.apache.cactus.client.WebResponseObjectFactory
All Implemented Interfaces:
ResponseObjectFactory

public class WebResponseObjectFactory
extends java.lang.Object
implements ResponseObjectFactory

Constructs Web response object that are passed as parameter to endXXX() and global end methods.

Version:
$Id: WebResponseObjectFactory.java,v 1.5 2003/05/26 11:45:25 cmlenz Exp $
Author:
Vincent Massol

Constructor Summary
WebResponseObjectFactory()
           
 
Method Summary
 java.lang.Object getResponseObject(java.lang.String theClassName, Request theRequest, java.net.HttpURLConnection theConnection)
          Constructs response object that are passed as parameter to endXXX() and global end methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebResponseObjectFactory

public WebResponseObjectFactory()
Method Detail

getResponseObject

public java.lang.Object getResponseObject(java.lang.String theClassName,
                                          Request theRequest,
                                          java.net.HttpURLConnection theConnection)
                                   throws ClientException
Description copied from interface: ResponseObjectFactory
Constructs response object that are passed as parameter to endXXX() and global end methods.

Specified by:
getResponseObject in interface ResponseObjectFactory
Parameters:
theClassName - the class name of the object to construct
theRequest - the request that was sent by Cactus to the server side
theConnection - the HTTP connection object that was used by Cactus to connect to the server side
Returns:
the response object that will be passed to endXXX() methods and to the global end method
Throws:
ClientException - if it fails to construct the response object
See Also:
ResponseObjectFactory.getResponseObject(java.lang.String, org.apache.cactus.Request, java.net.HttpURLConnection)


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.