org.apache.turbine.test
Class EnhancedMockHttpServletRequest

java.lang.Object
  extended by com.mockobjects.MockObject
      extended by com.mockobjects.servlet.MockHttpServletRequest
          extended by org.apache.turbine.test.EnhancedMockHttpServletRequest
All Implemented Interfaces:
com.mockobjects.Verifiable, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class EnhancedMockHttpServletRequest
extends com.mockobjects.servlet.MockHttpServletRequest

Extension to the basic MockHttpServletRequest to provide some extra parameters required by Turbine.

Version:
$Id: EnhancedMockHttpServletRequest.java 731294 2009-01-04 16:39:38Z tv $
Author:
Eric Pugh

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
EnhancedMockHttpServletRequest()
           
 
Method Summary
 String getCharacterEncoding()
           
 Locale getLocale()
           
 int getServerPort()
           
 
Methods inherited from class com.mockobjects.servlet.MockHttpServletRequest
addExpectedGetAttributeName, addExpectedSetAttribute, getAttribute, getAttributeNames, getAuthType, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocales, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, removeAttribute, setAttribute, setCharacterEncoding, setContentType, setExpectedContentType, setExpectedCreateSession, setExpectedRequestDispatcherURI, setSession, setupAddHeader, setupAddParameter, setupAddParameter, setupGetAttribute, setupGetAttrubuteNames, setupGetContentType, setupGetContextPath, setupGetInputStream, setupGetMethod, setupGetParameterMap, setupGetParameterNames, setupGetProtocol, setupGetReader, setupGetRemoteAddr, setupGetRequestDispatcher, setupGetRequestURI, setupGetServletPath, setupGetUserPrincipal, setupPathInfo, setupQueryString, setupRemoveAttribute, setupScheme, setupServerName
 
Methods inherited from class com.mockobjects.MockObject
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getLocalAddr, getLocalName, getLocalPort, getRemotePort
 

Constructor Detail

EnhancedMockHttpServletRequest

public EnhancedMockHttpServletRequest()
Method Detail

getCharacterEncoding

public String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest
Overrides:
getCharacterEncoding in class com.mockobjects.servlet.MockHttpServletRequest
See Also:
MockHttpServletRequest.getCharacterEncoding()

getServerPort

public int getServerPort()
Specified by:
getServerPort in interface javax.servlet.ServletRequest
Overrides:
getServerPort in class com.mockobjects.servlet.MockHttpServletRequest
See Also:
MockHttpServletRequest.getServerPort()

getLocale

public Locale getLocale()
Specified by:
getLocale in interface javax.servlet.ServletRequest
Overrides:
getLocale in class com.mockobjects.servlet.MockHttpServletRequest
See Also:
MockHttpServletRequest.getLocale()


Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.