|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.turbine.services.rundata.TurbineRunDataService
The RunData Service provides the implementations for RunData and related interfaces required by request processing. It supports different configurations of implementations, which can be selected by specifying a configuration key. It may use pooling, in which case the implementations should implement the Recyclable interface.
Field Summary | |
static java.lang.String |
COOKIE_PARSER
Deprecated. Use RunDataService.COOKIE_PARSER_KEY |
static java.lang.String |
PARAMETER_PARSER
Deprecated. Use RunDataService.PARAMETER_PARSER_KEY |
static java.lang.String |
RUN_DATA
Deprecated. Use RunDataService.RUN_DATA_KEY |
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Fields inherited from interface org.apache.turbine.services.rundata.RunDataService |
COOKIE_PARSER_KEY, DEFAULT_CONFIG, PARAMETER_PARSER_KEY, RUN_DATA_KEY, SERVICE_NAME |
Constructor Summary | |
TurbineRunDataService()
Constructs a RunData Service. |
Method Summary | |
RunData |
getRunData(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig config)
Gets a default RunData object. |
RunData |
getRunData(java.lang.String key,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig config)
Gets a RunData instance from a specific configuration. |
void |
init()
Initializes the service by setting the pool capacity. |
boolean |
putRunData(RunData data)
Puts the used RunData object back to the factory for recycling. |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init, shutdown |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, setInitableBroker, shutdown |
Field Detail |
public static final java.lang.String RUN_DATA
public static final java.lang.String PARAMETER_PARSER
public static final java.lang.String COOKIE_PARSER
Constructor Detail |
public TurbineRunDataService()
Method Detail |
public void init() throws InitializationException
init
in interface Initable
init
in class TurbineBaseService
InitializationException
- if initialization fails.public RunData getRunData(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.ServletConfig config) throws TurbineException
getRunData
in interface RunDataService
req
- a servlet request.res
- a servlet response.config
- a servlet config.
TurbineException
- if the operation fails.public RunData getRunData(java.lang.String key, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.ServletConfig config) throws TurbineException, java.lang.IllegalArgumentException
getRunData
in interface RunDataService
key
- a configuration key.req
- a servlet request.res
- a servlet response.config
- a servlet config.
TurbineException
- if the operation fails.
java.lang.IllegalArgumentException
- if any of the parameters are null.public boolean putRunData(RunData data)
putRunData
in interface RunDataService
data
- the used RunData object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |