org.apache.jetspeed.mocks
Class BaseMockServletContext

java.lang.Object
  extended by com.mockrunner.mock.web.MockServletContext
      extended by org.apache.jetspeed.mocks.BaseMockServletContext
All Implemented Interfaces:
javax.servlet.ServletContext
Direct Known Subclasses:
ResourceLocatingServletContext

public abstract class BaseMockServletContext
extends com.mockrunner.mock.web.MockServletContext
implements javax.servlet.ServletContext


Field Summary
private  Map attributes
           
 
Constructor Summary
BaseMockServletContext()
           
 
Method Summary
 Object getAttribute(String arg0)
           
 void removeAttribute(String arg0)
           
 void setAttribute(String arg0, Object arg1)
           
protected  void unsupported()
           
 
Methods inherited from class com.mockrunner.mock.web.MockServletContext
addAttributeListener, addResourcePath, addResourcePaths, clearAttributes, clearInitParameters, clearRequestDispatcherMap, getAttributeNames, getContext, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestDispatcher, getRequestDispatcherMap, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, log, resetAll, setContext, setInitParameter, setInitParameters, setMimeType, setRealPath, setRequestDispatcher, setResource, setResourceAsStream, setResourceAsStream, setServletContextName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletContext
getAttributeNames, getContext, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, log, log, log
 

Field Detail

attributes

private final Map attributes
Constructor Detail

BaseMockServletContext

public BaseMockServletContext()
Method Detail

getAttribute

public Object getAttribute(String arg0)
Specified by:
getAttribute in interface javax.servlet.ServletContext
Overrides:
getAttribute in class com.mockrunner.mock.web.MockServletContext

removeAttribute

public void removeAttribute(String arg0)
Specified by:
removeAttribute in interface javax.servlet.ServletContext
Overrides:
removeAttribute in class com.mockrunner.mock.web.MockServletContext

setAttribute

public void setAttribute(String arg0,
                         Object arg1)
Specified by:
setAttribute in interface javax.servlet.ServletContext
Overrides:
setAttribute in class com.mockrunner.mock.web.MockServletContext

unsupported

protected final void unsupported()
                          throws UnsupportedOperationException
Throws:
UnsupportedOperationException


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.