org.apache.cactus
class WebRequest

java.lang.Object
  |
  +--org.apache.cactus.WebRequest
All Implemented Interfaces:
Request
Known Advisors:
LogAspect

public class WebRequest
extends java.lang.Object
implements Request

Contains all HTTP request data for a test case. It is the data that will be sent to the server redirector and that will be available to the test methods through the HttpServletRequest object.

Namely, it is :

Version:
$Id: WebRequest.java,v 1.5 2002/07/26 18:50:29 vmassol Exp $
Author:
Vincent Massol , Jason Robertson

Field Summary
static String GET_METHOD
          GET Method identifier.
          
static String POST_METHOD
          POST Method identifier.
          
 
Constructor Summary
WebRequest()
           
 
Method Summary
 void addCookie(String theName, String theValue)
           Affected by: LogAspect
 void addCookie(String theDomain, String theName, String theValue)
           Affected by: LogAspect
 void addCookie(Cookie theCookie)
           Affected by: LogAspect
 void addHeader(String theName, String theValue)
           Affected by: LogAspect
 void addParameter(String theName, String theValue, String theMethod)
           Affected by: LogAspect
 void addParameter(String theName, String theValue)
           Affected by: LogAspect
 AbstractAuthentication getAuthentication()
           
 boolean getAutomaticSession()
           
 String getContentType()
           
 Vector getCookies()
           
 String getHeader(String theName)
           Affected by: LogAspect
 Enumeration getHeaderNames()
           
 String[] getHeaderValues(String theName)
           Affected by: LogAspect
 String getParameterGet(String theName)
           Affected by: LogAspect
 Enumeration getParameterNamesGet()
           
 Enumeration getParameterNamesPost()
           
 String getParameterPost(String theName)
           Affected by: LogAspect
 String[] getParameterValuesGet(String theName)
           Affected by: LogAspect
 String[] getParameterValuesPost(String theName)
           Affected by: LogAspect
 String getRedirectorName()
           
 ServletURL getURL()
           
 InputStream getUserData()
           
 void setAuthentication(AbstractAuthentication theAuthenticationObject)
           Affected by: LogAspect
 void setAutomaticSession(boolean isAutomaticSession)
           Affected by: LogAspect
 void setContentType(String theContentType)
           Affected by: LogAspect
 void setRedirectorName(String theRedirectorName)
           Affected by: LogAspect
 void setURL(String theServerName, String theContextPath, String theServletPath, String thePathInfo, String theQueryString)
           Affected by: LogAspect
 void setUserData(InputStream theDataStream)
           Affected by: LogAspect
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GET_METHOD

public static final String GET_METHOD
GET Method identifier.

POST_METHOD

public static final String POST_METHOD
POST Method identifier.
Constructor Detail

WebRequest

public WebRequest()
Method Detail

addCookie

public void addCookie(String theName,
                      String theValue)
Affected by:
around() in LogAspect.

addCookie

public void addCookie(String theDomain,
                      String theName,
                      String theValue)
Affected by:
around() in LogAspect.

addCookie

public void addCookie(Cookie theCookie)
Affected by:
around() in LogAspect.

addHeader

public void addHeader(String theName,
                      String theValue)
Affected by:
around() in LogAspect.

addParameter

public void addParameter(String theName,
                         String theValue,
                         String theMethod)
Affected by:
around() in LogAspect.

addParameter

public void addParameter(String theName,
                         String theValue)
Affected by:
around() in LogAspect.

getAuthentication

public AbstractAuthentication getAuthentication()

getAutomaticSession

public boolean getAutomaticSession()

getContentType

public String getContentType()

getCookies

public Vector getCookies()

getHeader

public String getHeader(String theName)
Affected by:
around() in LogAspect.

getHeaderNames

public Enumeration getHeaderNames()

getHeaderValues

public String[] getHeaderValues(String theName)
Affected by:
around() in LogAspect.

getParameterGet

public String getParameterGet(String theName)
Affected by:
around() in LogAspect.

getParameterNamesGet

public Enumeration getParameterNamesGet()

getParameterNamesPost

public Enumeration getParameterNamesPost()

getParameterPost

public String getParameterPost(String theName)
Affected by:
around() in LogAspect.

getParameterValuesGet

public String[] getParameterValuesGet(String theName)
Affected by:
around() in LogAspect.

getParameterValuesPost

public String[] getParameterValuesPost(String theName)
Affected by:
around() in LogAspect.

getRedirectorName

public String getRedirectorName()

getURL

public ServletURL getURL()

getUserData

public InputStream getUserData()

setAuthentication

public void setAuthentication(AbstractAuthentication theAuthenticationObject)
Affected by:
around() in LogAspect.

setAutomaticSession

public void setAutomaticSession(boolean isAutomaticSession)
Affected by:
around() in LogAspect.

setContentType

public void setContentType(String theContentType)
Affected by:
around() in LogAspect.

setRedirectorName

public void setRedirectorName(String theRedirectorName)
Affected by:
around() in LogAspect.

setURL

public void setURL(String theServerName,
                   String theContextPath,
                   String theServletPath,
                   String thePathInfo,
                   String theQueryString)
Affected by:
around() in LogAspect.

setUserData

public void setUserData(InputStream theDataStream)
Affected by:
around() in LogAspect.

toString

public String toString()


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