|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.mock.web.portlet.MockPortletConfig
public class MockPortletConfig
Mock implementation of the PortletConfig interface.
| Constructor Summary | |
|---|---|
MockPortletConfig()
Create a new MockPortletConfig with a default MockPortletContext. |
|
MockPortletConfig(javax.portlet.PortletContext portletContext)
Create a new MockPortletConfig. |
|
MockPortletConfig(javax.portlet.PortletContext portletContext,
String portletName)
Create a new MockPortletConfig. |
|
MockPortletConfig(String portletName)
Create a new MockPortletConfig with a default MockPortletContext. |
|
| Method Summary | |
|---|---|
void |
addContainerRuntimeOption(String key,
String value)
|
void |
addContainerRuntimeOption(String key,
String[] values)
|
void |
addInitParameter(String name,
String value)
|
void |
addProcessingEventQName(QName name)
|
void |
addPublicRenderParameterName(String name)
|
void |
addPublishingEventQName(QName name)
|
void |
addSupportedLocale(Locale locale)
|
Map<String,String[]> |
getContainerRuntimeOptions()
|
String |
getDefaultNamespace()
|
String |
getInitParameter(String name)
|
Enumeration<String> |
getInitParameterNames()
|
javax.portlet.PortletContext |
getPortletContext()
|
String |
getPortletName()
|
Enumeration<QName> |
getProcessingEventQNames()
|
Enumeration<String> |
getPublicRenderParameterNames()
|
Enumeration<QName> |
getPublishingEventQNames()
|
ResourceBundle |
getResourceBundle(Locale locale)
|
Enumeration<Locale> |
getSupportedLocales()
|
void |
setDefaultNamespace(String defaultNamespace)
|
void |
setResourceBundle(Locale locale,
ResourceBundle resourceBundle)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockPortletConfig()
MockPortletContext.
public MockPortletConfig(String portletName)
MockPortletContext.
portletName - the name of the portletpublic MockPortletConfig(javax.portlet.PortletContext portletContext)
portletContext - the PortletContext that the portlet runs in
public MockPortletConfig(javax.portlet.PortletContext portletContext,
String portletName)
portletContext - the PortletContext that the portlet runs inportletName - the name of the portlet| Method Detail |
|---|
public String getPortletName()
getPortletName in interface javax.portlet.PortletConfigpublic javax.portlet.PortletContext getPortletContext()
getPortletContext in interface javax.portlet.PortletConfig
public void setResourceBundle(Locale locale,
ResourceBundle resourceBundle)
public ResourceBundle getResourceBundle(Locale locale)
getResourceBundle in interface javax.portlet.PortletConfig
public void addInitParameter(String name,
String value)
public String getInitParameter(String name)
getInitParameter in interface javax.portlet.PortletConfigpublic Enumeration<String> getInitParameterNames()
getInitParameterNames in interface javax.portlet.PortletConfigpublic void addPublicRenderParameterName(String name)
public Enumeration<String> getPublicRenderParameterNames()
getPublicRenderParameterNames in interface javax.portlet.PortletConfigpublic void setDefaultNamespace(String defaultNamespace)
public String getDefaultNamespace()
getDefaultNamespace in interface javax.portlet.PortletConfigpublic void addPublishingEventQName(QName name)
public Enumeration<QName> getPublishingEventQNames()
getPublishingEventQNames in interface javax.portlet.PortletConfigpublic void addProcessingEventQName(QName name)
public Enumeration<QName> getProcessingEventQNames()
getProcessingEventQNames in interface javax.portlet.PortletConfigpublic void addSupportedLocale(Locale locale)
public Enumeration<Locale> getSupportedLocales()
getSupportedLocales in interface javax.portlet.PortletConfig
public void addContainerRuntimeOption(String key,
String value)
public void addContainerRuntimeOption(String key,
String[] values)
public Map<String,String[]> getContainerRuntimeOptions()
getContainerRuntimeOptions in interface javax.portlet.PortletConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||