org.seasar.framework.mock.portlet
クラス MockPortletContextImpl

java.lang.Object
  拡張org.seasar.framework.mock.portlet.MockPortletContextImpl
すべての実装インタフェース:
MockPortletContext, javax.portlet.PortletContext

public class MockPortletContextImpl
extends Object
implements MockPortletContext

作成者:
shinsuke

フィールドの概要
static int MAJOR_VERSION
           
static int MINOR_VERSION
           
static String SERVER_INFO
           
 
コンストラクタの概要
MockPortletContextImpl(String path)
           
 
メソッドの概要
 void addMimeType(String file, String type)
           
protected  String adjustPath(String path)
           
 MockPortletRequestImpl createRequest()
           
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 int getMajorVersion()
           
 String getMimeType(String file)
           
 int getMinorVersion()
           
 javax.portlet.PortletRequestDispatcher getNamedDispatcher(String arg0)
           
 String getPortletContextName()
           
 String getRealPath(String path)
           
 javax.portlet.PortletRequestDispatcher getRequestDispatcher(String arg0)
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 Set getResourcePaths(String path)
           
 String getServerInfo()
           
 void log(String message)
           
 void log(String message, Throwable ex)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setInitParameter(String name, String value)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

MAJOR_VERSION

public static final int MAJOR_VERSION
関連項目:
定数フィールド値

MINOR_VERSION

public static final int MINOR_VERSION
関連項目:
定数フィールド値

SERVER_INFO

public static final String SERVER_INFO
関連項目:
定数フィールド値
コンストラクタの詳細

MockPortletContextImpl

public MockPortletContextImpl(String path)
メソッドの詳細

getAttribute

public Object getAttribute(String name)
定義:
インタフェース javax.portlet.PortletContext 内の getAttribute

getAttributeNames

public Enumeration getAttributeNames()
定義:
インタフェース javax.portlet.PortletContext 内の getAttributeNames

getInitParameter

public String getInitParameter(String name)
定義:
インタフェース javax.portlet.PortletContext 内の getInitParameter

getInitParameterNames

public Enumeration getInitParameterNames()
定義:
インタフェース javax.portlet.PortletContext 内の getInitParameterNames

getMajorVersion

public int getMajorVersion()
定義:
インタフェース javax.portlet.PortletContext 内の getMajorVersion

getMimeType

public String getMimeType(String file)
定義:
インタフェース javax.portlet.PortletContext 内の getMimeType

getMinorVersion

public int getMinorVersion()
定義:
インタフェース javax.portlet.PortletContext 内の getMinorVersion

getNamedDispatcher

public javax.portlet.PortletRequestDispatcher getNamedDispatcher(String arg0)
定義:
インタフェース javax.portlet.PortletContext 内の getNamedDispatcher

getPortletContextName

public String getPortletContextName()
定義:
インタフェース javax.portlet.PortletContext 内の getPortletContextName

getRealPath

public String getRealPath(String path)
定義:
インタフェース javax.portlet.PortletContext 内の getRealPath

getRequestDispatcher

public javax.portlet.PortletRequestDispatcher getRequestDispatcher(String arg0)
定義:
インタフェース javax.portlet.PortletContext 内の getRequestDispatcher

getResource

public URL getResource(String path)
                throws MalformedURLException
定義:
インタフェース javax.portlet.PortletContext 内の getResource
例外:
MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String path)
定義:
インタフェース javax.portlet.PortletContext 内の getResourceAsStream

getResourcePaths

public Set getResourcePaths(String path)
定義:
インタフェース javax.portlet.PortletContext 内の getResourcePaths

getServerInfo

public String getServerInfo()
定義:
インタフェース javax.portlet.PortletContext 内の getServerInfo

log

public void log(String message,
                Throwable ex)
定義:
インタフェース javax.portlet.PortletContext 内の log

log

public void log(String message)
定義:
インタフェース javax.portlet.PortletContext 内の log

removeAttribute

public void removeAttribute(String name)
定義:
インタフェース javax.portlet.PortletContext 内の removeAttribute

setAttribute

public void setAttribute(String name,
                         Object value)
定義:
インタフェース javax.portlet.PortletContext 内の setAttribute

setInitParameter

public void setInitParameter(String name,
                             String value)
定義:
インタフェース MockPortletContext 内の setInitParameter

addMimeType

public void addMimeType(String file,
                        String type)
定義:
インタフェース MockPortletContext 内の addMimeType

adjustPath

protected String adjustPath(String path)

createRequest

public MockPortletRequestImpl createRequest()
定義:
インタフェース MockPortletContext 内の createRequest


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.