org.sakaiproject.component.section.facade.impl.standalone
Class ContextTestImpl

java.lang.Object
  extended byorg.sakaiproject.component.section.facade.impl.standalone.ContextTestImpl
All Implemented Interfaces:
Context

public class ContextTestImpl
extends Object
implements Context

Testing implementation of Context, which always returns TEST_CONTEXT_ID.

Author:
Josh Holtzman

Constructor Summary
ContextTestImpl()
           
 
Method Summary
 String getContext(Object request)
          Gets the site context.
 String getContextTitle(Object request)
          Gets the label or title for this context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextTestImpl

public ContextTestImpl()
Method Detail

getContext

public String getContext(Object request)
Description copied from interface: Context
Gets the site context.

Specified by:
getContext in interface Context
Parameters:
request - The object containing the context information. This will usually be something like a HttpServletRequest. In Sakai, the object can be null.
Returns:

getContextTitle

public String getContextTitle(Object request)
Description copied from interface: Context
Gets the label or title for this context.

Specified by:
getContextTitle in interface Context