org.apache.tapestry5.internal.test
Interface TestableRequest

All Superinterfaces:
Request
All Known Implementing Classes:
TestableRequestImpl

public interface TestableRequest
extends Request

An extended version of Request that allows the PageTester to control and override behavior, effectively simulating the portions of Request that are provided normally by a servlet container.


Method Summary
 void clear()
          Clears the internal parameters map.
 void loadParameter(String parameterName, String parameterValue)
          Loads a single parameter/value pair.
 void loadParameters(Map<String,String> parameterValues)
          Loads new parameter/value pairs into the map.
 
Methods inherited from interface org.apache.tapestry5.services.Request
getAttribute, getContextPath, getDateHeader, getHeader, getHeaderNames, getLocale, getMethod, getParameter, getParameterNames, getParameters, getPath, getServerName, getSession, isRequestedSessionIdValid, isSecure, isXHR, setAttribute
 

Method Detail

clear

void clear()
Clears the internal parameters map.


loadParameters

void loadParameters(Map<String,String> parameterValues)
Loads new parameter/value pairs into the map.


loadParameter

void loadParameter(String parameterName,
                   String parameterValue)
Loads a single parameter/value pair.



Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.