org.apache.cactus.util
Class AssertUtils

java.lang.Object
  |
  +--org.apache.cactus.util.AssertUtils

Deprecated. As of Cactus 1.2, replaced by WebResponse

public class AssertUtils
extends java.lang.Object

Cactus utility classes to help assert returned results from server side code.

Version:
$Id: AssertUtils.java,v 1.9 2001/09/14 20:20:03 pier Exp $
Author:
Vincent Massol
See Also:
WebResponse

Constructor Summary
AssertUtils()
          Deprecated.  
 
Method Summary
static java.util.Hashtable getCookies(java.net.HttpURLConnection theConnection)
          Deprecated. Extract the cookies from a HTTP connection.
static java.lang.String getResponseAsString(java.net.HttpURLConnection theConnection)
          Deprecated.  
static java.lang.String[] getResponseAsStringArray(java.net.HttpURLConnection theConnection)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertUtils

public AssertUtils()
Deprecated. 
Method Detail

getResponseAsString

public static java.lang.String getResponseAsString(java.net.HttpURLConnection theConnection)
                                            throws java.io.IOException
Deprecated. 
Parameters:
theConnection - the connection object used to connect to the server redirector.
Returns:
the servlet output stream bytes as a string.

getResponseAsStringArray

public static java.lang.String[] getResponseAsStringArray(java.net.HttpURLConnection theConnection)
                                                   throws java.io.IOException
Deprecated. 
Parameters:
theConnection - the connection object used to connect to the server redirector.
Returns:
the servlet output stream bytes as an array of string (each string is a separate line from the output stream).

getCookies

public static java.util.Hashtable getCookies(java.net.HttpURLConnection theConnection)
Deprecated. 
Extract the cookies from a HTTP connection.
Parameters:
theConnection - the HTTP connection from which to extract server returned cookies.
Returns:
a hashtable of ClientCookie objects.


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