|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.beasys.commerce.foundation.flow.FlowManager
Flow Manager servlet. This class is responsible for pulling the property set for the application, caching it, and passing the information to the DestinationDeterminer and DestinationHandler.
Field Summary | |
protected java.util.HashMap |
applications
Keep track of the applications and their data. |
protected java.lang.String |
defaultWebAppName
|
protected SchemaManager |
schemaManager
|
Fields inherited from interface com.beasys.commerce.foundation.flow.FlowManagerConstants |
APPLICATION_FLOW_MANAGER, APPLICATION_RESET_FLAG, PERIOD |
Constructor Summary | |
FlowManager()
Default constructor. |
Method Summary | |
protected java.lang.String |
cleanPathInfo(java.lang.String aPath)
Clean the path info. |
protected java.lang.Object |
createObject(java.lang.String aName)
Create a new instance for the specified name. |
protected int |
determineSize(java.lang.Object anObject)
Determine the size of the session. |
protected com.beasys.commerce.foundation.flow.FlowManager.Application |
getApplication(java.lang.String aName,
boolean forceReset)
Get the application associated to the passed name. |
protected java.lang.String |
getDefaultWebAppName()
Return the default Web Application as specified by the property commerce.defaultWebApp. |
protected java.lang.String |
getFlowManagerURI(javax.servlet.http.HttpServletRequest req)
Get flow manager URI. |
protected java.util.Map |
getPropertySet(java.lang.String aName)
Get the property set for the application name. |
SchemaManager |
getSchemaManager()
Look up and get a handle to the SchemaManager. |
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Service the request. |
Field Detail |
protected java.util.HashMap applications
protected SchemaManager schemaManager
protected java.lang.String defaultWebAppName
Constructor Detail |
public FlowManager()
Method Detail |
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
config
- a ServletConfig configurationServletException
- protected java.lang.String cleanPathInfo(java.lang.String aPath)
aPath
- the path info from getPathInfo().String
public SchemaManager getSchemaManager() throws javax.servlet.ServletException
SchemaManager
protected java.lang.Object createObject(java.lang.String aName) throws javax.servlet.ServletException
aName
- a qualified class name.Object
a new instance of the class name.ServletException
- protected com.beasys.commerce.foundation.flow.FlowManager.Application getApplication(java.lang.String aName, boolean forceReset) throws javax.servlet.ServletException
aName
- the name of the application.forceReset
- are we forcing the cache to be reset, regardless of the last
time it was retrieved.Application
struct containing information for the application. Contains
ttl, DestinationDeterminer, DestinationHandler, and the last time it was retrieved.ServletException
- protected java.util.Map getPropertySet(java.lang.String aName) throws javax.servlet.ServletException
aName
- the application name.Map
the property set as a Map.ServletException
- protected java.lang.String getFlowManagerURI(javax.servlet.http.HttpServletRequest req)
req
- String
protected int determineSize(java.lang.Object anObject)
anObject
- int
protected java.lang.String getDefaultWebAppName()
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException
req
- the request.res
- the response.IOException
- ServletException
-
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |