org.apache.velocity.test

Class VelocityServletTest.MockServletContext

Enclosing Class:
VelocityServletTest
Implemented Interfaces:
ServletContext

(package private) static class VelocityServletTest.MockServletContext
extends java.lang.Object
implements ServletContext

Method Summary

Object
getAttribute(String ignored)
Enumeration
getAttributeNames()
ServletContext
getContext(String ignored)
String
getInitParameter(String ignored)
Enumeration
getInitParameterNames()
int
getMajorVersion()
String
getMimeType(String ignored)
int
getMinorVersion()
RequestDispatcher
getNamedDispatcher(String ignored)
String
getRealPath(String ignored)
RequestDispatcher
getRequestDispatcher(String ignored)
URL
getResource(String ignored)
InputStream
getResourceAsStream(String ignored)
Set
getResourcePaths(String path)
String
getServerInfo()
Servlet
getServlet(String ignored)
String
getServletContextName()
Enumeration
getServletNames()
Enumeration
getServlets()
void
log(Exception e, String msg)
void
log(String msg)
void
log(String msg, Throwable t)
void
removeAttribute(String name)
void
setAttribute(String name, Object value)

Method Details

getAttribute

public Object getAttribute(String ignored)

getAttributeNames

public Enumeration getAttributeNames()

getContext

public ServletContext getContext(String ignored)

getInitParameter

public String getInitParameter(String ignored)

getInitParameterNames

public Enumeration getInitParameterNames()

getMajorVersion

public int getMajorVersion()

getMimeType

public String getMimeType(String ignored)

getMinorVersion

public int getMinorVersion()

getNamedDispatcher

public RequestDispatcher getNamedDispatcher(String ignored)

getRealPath

public String getRealPath(String ignored)

getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String ignored)

getResource

public URL getResource(String ignored)
            throws MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String ignored)

getResourcePaths

public Set getResourcePaths(String path)

getServerInfo

public String getServerInfo()

getServlet

public Servlet getServlet(String ignored)
            throws ServletException

getServletContextName

public String getServletContextName()

getServletNames

public Enumeration getServletNames()

getServlets

public Enumeration getServlets()

log

public void log(Exception e,
                String msg)

log

public void log(String msg)

log

public void log(String msg,
                Throwable t)

removeAttribute

public void removeAttribute(String name)

setAttribute

public void setAttribute(String name,
                         Object value)

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.