|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.webapps.session.components.ContextInputModule
public class ContextInputModule
This input module provides access to the information of a session context using an XPath. The XPath expression that can be used is the same as for the session transformer. The first information in the path is the context, so for example {session-context:authentication/authentication/ID} delivers the ID of the current user and therefore delivers the same information as: <session:getxml context="authentication" path="/authentication/ID"/> using the session transformer.
| Field Summary | |
|---|---|
protected ContextManager |
contextManager
Deprecated. |
protected ServiceManager |
manager
Deprecated. |
| Fields inherited from interface org.apache.cocoon.components.modules.input.InputModule |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ContextInputModule()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
dispose()
Deprecated. |
Object |
getAttribute(String name,
Configuration modeConf,
Map objectModel)
Deprecated. Standard access to an attribute's value. |
Iterator |
getAttributeNames(Configuration modeConf,
Map objectModel)
Deprecated. Returns an Iterator of String objects containing the names of the attributes available. |
Object[] |
getAttributeValues(String name,
Configuration modeConf,
Map objectModel)
Deprecated. Returns an array of String objects containing all of the values the given attribute has, or null if the attribute does not exist. |
void |
service(ServiceManager manager)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ServiceManager manager
protected ContextManager contextManager
| Constructor Detail |
|---|
public ContextInputModule()
| Method Detail |
|---|
public Object getAttribute(String name,
Configuration modeConf,
Map objectModel)
throws ConfigurationException
InputModuleInputModule.getAttributeValues(String, Configuration, Map) or
InputModule.getAttributeNames(Configuration, Map) and
InputModule.getAttribute(String, Configuration, Map) to get them one by one.
getAttribute in interface InputModulename - a String that specifies what the caller thinks
would identify an attribute. This is mainly a fallback if no
modeConf is present.modeConf - column's mode configuration from resource
description. This argument is optional.
ConfigurationException
public Iterator getAttributeNames(Configuration modeConf,
Map objectModel)
throws ConfigurationException
InputModule
getAttributeNames in interface InputModulemodeConf - column's mode configuration from resource
description. This argument is optional.
ConfigurationException
public Object[] getAttributeValues(String name,
Configuration modeConf,
Map objectModel)
throws ConfigurationException
InputModuleInputModule.getAttributeNames(Configuration, Map) together with
InputModule.getAttribute(String, Configuration, Map) can be used to get the
values one by one.
getAttributeValues in interface InputModulename - a String that specifies what the caller thinks
would identify an attributes. This is mainly a fallback
if no modeConf is present.modeConf - column's mode configuration from resource
description. This argument is optional.
ConfigurationException
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceExceptionpublic void dispose()
dispose in interface Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||