org.apache.cactus.util
class AssertUtils

java.lang.Object
  |
  +--org.apache.cactus.util.AssertUtils
Known Advisors:
LogAspect

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.1 2002/03/01 00:43:47 vmassol Exp $
Author:
Vincent Massol
See Also:
WebResponse

Constructor Summary
AssertUtils()
          Deprecated. As of Cactus 1.2, replaced by WebResponse
 
Method Summary
static Hashtable getCookies(HttpURLConnection theConnection)
          Deprecated. Extract the cookies from a HTTP connection.
          Affected by: LogAspect
static String getResponseAsString(HttpURLConnection theConnection)
          Deprecated.  Affected by: LogAspect
static String[] getResponseAsStringArray(HttpURLConnection theConnection)
          Deprecated.  Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertUtils

public AssertUtils()
Deprecated. As of Cactus 1.2, replaced by WebResponse

Cactus utility classes to help assert returned results from server side code.
See Also:
WebResponse
Method Detail

getCookies

public static Hashtable getCookies(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.
Affected by:
around() in LogAspect.

getResponseAsString

public static String getResponseAsString(HttpURLConnection theConnection)
Deprecated. 
Parameters:
theConnection - the connection object used to connect to the server redirector.
Returns:
the servlet output stream bytes as a string.
Affected by:
around() in LogAspect.

getResponseAsStringArray

public static String[] getResponseAsStringArray(HttpURLConnection theConnection)
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).
Affected by:
around() in LogAspect.


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