Class MockPortletContext

java.lang.Object
org.apache.commons.chain.web.portlet.MockPortletContext
All Implemented Interfaces:
javax.portlet.PortletContext

public class MockPortletContext extends Object implements javax.portlet.PortletContext
Mock Object for PortletContext
  • Constructor Details

  • Method Details

    • setPortletContextName

      public void setPortletContextName(String portletContextName)
    • setServerInfo

      public void setServerInfo(String serverInfo)
    • addInitParameter

      public void addInitParameter(String name, String value)
    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in interface javax.portlet.PortletContext
    • getAttributeNames

      Specified by:
      getAttributeNames in interface javax.portlet.PortletContext
    • getInitParameter

      Specified by:
      getInitParameter in interface javax.portlet.PortletContext
    • getInitParameterNames

      Specified by:
      getInitParameterNames in interface javax.portlet.PortletContext
    • getMajorVersion

      public int getMajorVersion()
      Specified by:
      getMajorVersion in interface javax.portlet.PortletContext
    • getMimeType

      public String getMimeType(String path)
      Specified by:
      getMimeType in interface javax.portlet.PortletContext
    • getMinorVersion

      public int getMinorVersion()
      Specified by:
      getMinorVersion in interface javax.portlet.PortletContext
    • getNamedDispatcher

      public javax.portlet.PortletRequestDispatcher getNamedDispatcher(String name)
      Specified by:
      getNamedDispatcher in interface javax.portlet.PortletContext
    • getPortletContextName

      Specified by:
      getPortletContextName in interface javax.portlet.PortletContext
    • getRealPath

      public String getRealPath(String path)
      Specified by:
      getRealPath in interface javax.portlet.PortletContext
    • getRequestDispatcher

      public javax.portlet.PortletRequestDispatcher getRequestDispatcher(String path)
      Specified by:
      getRequestDispatcher in interface javax.portlet.PortletContext
    • getResource

      Specified by:
      getResource in interface javax.portlet.PortletContext
      Throws:
      MalformedURLException
    • getResourceAsStream

      Specified by:
      getResourceAsStream in interface javax.portlet.PortletContext
    • getResourcePaths

      Specified by:
      getResourcePaths in interface javax.portlet.PortletContext
    • getServerInfo

      Specified by:
      getServerInfo in interface javax.portlet.PortletContext
    • log

      public void log(String message)
      Specified by:
      log in interface javax.portlet.PortletContext
    • log

      public void log(String message, Throwable exception)
      Specified by:
      log in interface javax.portlet.PortletContext
    • removeAttribute

      public void removeAttribute(String name)
      Specified by:
      removeAttribute in interface javax.portlet.PortletContext
    • setAttribute

      public void setAttribute(String name, Object value)
      Specified by:
      setAttribute in interface javax.portlet.PortletContext
    • getContainerRuntimeOptions

      Specified by:
      getContainerRuntimeOptions in interface javax.portlet.PortletContext
    • getEffectiveMajorVersion

      Specified by:
      getEffectiveMajorVersion in interface javax.portlet.PortletContext
    • getEffectiveMinorVersion

      Specified by:
      getEffectiveMinorVersion in interface javax.portlet.PortletContext
    • getContextPath

      Specified by:
      getContextPath in interface javax.portlet.PortletContext
    • getClassLoader

      Specified by:
      getClassLoader in interface javax.portlet.PortletContext