|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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_KEY
The property for the implemention of the CookieParser. |
static java.lang.String |
DEFAULT_CONFIG
The default parser configuration key. |
static java.lang.String |
PARAMETER_PARSER_KEY
The property for the implemention of the ParameterParser. |
static java.lang.String |
RUN_DATA_KEY
The property for the implemention of the RunData object |
static java.lang.String |
SERVICE_NAME
The key under which this service is stored in TurbineServices. |
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 object from a specific configuration. |
boolean |
putRunData(RunData data)
Puts the used RunData object back to the factory for recycling. |
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, init, setInitableBroker, shutdown |
Field Detail |
public static final java.lang.String SERVICE_NAME
public static final java.lang.String DEFAULT_CONFIG
public static final java.lang.String RUN_DATA_KEY
public static final java.lang.String PARAMETER_PARSER_KEY
public static final java.lang.String COOKIE_PARSER_KEY
Method Detail |
public RunData getRunData(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.ServletConfig config) throws TurbineException
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
key
- a configuration key.req
- a servlet request.res
- a servlet response.config
- a servlet config.
TurbineException
- if the operation fails.public boolean putRunData(RunData data)
data
- the used RunData object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |