org.apache.velocity.test

Class VelocityServletTest.MockServletContext

static class VelocityServletTest.MockServletContext extends Object implements ServletContext

Method Summary
ObjectgetAttribute(String ignored)
EnumerationgetAttributeNames()
ServletContextgetContext(String ignored)
StringgetInitParameter(String ignored)
EnumerationgetInitParameterNames()
intgetMajorVersion()
StringgetMimeType(String ignored)
intgetMinorVersion()
RequestDispatchergetNamedDispatcher(String ignored)
StringgetRealPath(String ignored)
RequestDispatchergetRequestDispatcher(String ignored)
URLgetResource(String ignored)
InputStreamgetResourceAsStream(String ignored)
SetgetResourcePaths(String path)
StringgetServerInfo()
ServletgetServlet(String ignored)
StringgetServletContextName()
EnumerationgetServletNames()
EnumerationgetServlets()
voidlog(Exception e, String msg)
voidlog(String msg)
voidlog(String msg, Throwable t)
voidremoveAttribute(String name)
voidsetAttribute(String name, Object value)

Method Detail

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)

getResourceAsStream

public InputStream getResourceAsStream(String ignored)

getResourcePaths

public Set getResourcePaths(String path)

getServerInfo

public String getServerInfo()

getServlet

public Servlet getServlet(String ignored)

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.