|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--com.beasys.commerce.axiom.jsp.JspServiceManager
Acts as a traffic cop for a non-portal, p13n application. Provides redirection, forwarding, name-resolution, and security services. Note: The JspServiceManager is being deprecated in favor of the FlowManager, which provides additional functionality. Please see the documentation for the FlowManager.
Field Summary | |
protected boolean |
allowAutoLogin
Whether the p13n application allows auto-login upon invocation. |
protected int |
cookieTimeout
The time (in milliseconds) which elapses before the p13n application cookie is timed outl The cookie defaults to timing out when the browser is closed. |
protected java.lang.String |
defaultDest
The p13n application's default destination. |
protected DefaultDestinationDeterminer |
determiner
Delegate for maintenance of one set of code. |
protected java.lang.String |
documentRoot
The server's document root. |
protected java.lang.String |
groupName
The group name associated with the p13n application instance. |
protected java.lang.String |
homePage
The p13n application's home page. |
protected long |
lastCheckTime
Deprecated. - this value is meaningless for this release of JspServiceManager. It will always be -1 from this implementation. |
protected java.util.HashMap |
map
Read the servlet initialization parameters into a Map. |
protected int |
refreshWorkingDir
Check for files every time. |
protected java.lang.String |
repositoryDir
Default implementation. |
protected SessionComparator |
sessionComparator
The session comparator used to validate a HttpServletRequest |
protected java.lang.String |
sessionParamName
The name assigned to the session. |
protected int |
sessionTimeout
The time (in milliseconds) which elapses before the p13n application session is timed out. |
protected java.lang.String |
trafficURI
The URI of the JspServiceManager. |
protected java.lang.String |
workingDir
The working directory, relative the server's document root, of the p13n application instance. |
protected java.util.HashSet |
workingDirFiles
This is the list of files contained within the working directory. |
Constructor Summary | |
JspServiceManager()
Default constructor. |
Method Summary | |
protected void |
appendParameters(java.lang.String key,
java.lang.String[] values,
java.lang.StringBuffer sb)
Help creating the request query string, if we need to redirect the destination. |
void |
baseReset(javax.servlet.http.HttpServletRequest aRequest)
Reset the values that can't be overridden. |
protected java.lang.String |
determineDestination(javax.servlet.http.HttpServletRequest req)
Figure out what the real destination is. |
protected void |
finishTx(javax.transaction.UserTransaction tx,
javax.servlet.http.HttpServletRequest req)
Deprecated. |
protected void |
getWorkingDirFiles()
Get working dir files. |
protected void |
getWorkingDirFiles(java.io.File aDirectory)
Get the working directory files. |
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet. |
protected void |
initDeterminer()
Init determiner. |
protected java.lang.String |
initSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handles the session initialization. |
protected void |
redirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String aDestination)
If the destination contains a '?' (for parms). |
protected void |
resetSession(javax.servlet.http.HttpServletRequest aRequest)
Reset the session to a known state. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Implements the service method of the servlet. |
protected java.lang.String |
setTransactionalAttributes(javax.servlet.http.HttpServletRequest req,
java.lang.String aDestination)
Set transactional attributes on the request. |
protected javax.transaction.UserTransaction |
startTx()
Deprecated. |
protected boolean |
stillAlive(javax.servlet.http.HttpServletRequest aRequest)
Check to see if the session has timed out. |
protected boolean |
userStillExist(java.lang.String aUser,
javax.servlet.http.HttpServletRequest aRequest)
Does the user still exist - is this user still in the system? |
protected boolean |
validDestination(java.lang.String aDestination)
Check if the destination is valid. |
protected boolean |
validDestination(java.lang.String aDestination,
java.io.File ignore)
Deprecated. see validDestination(String) |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete,
doGet,
doOptions,
doPost,
doPut,
doTrace,
getLastModified,
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy,
getInitParameter,
getInitParameterNames,
getServletConfig,
getServletContext,
getServletInfo,
getServletName,
init,
log,
log |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String trafficURI
protected java.lang.String groupName
protected java.lang.String defaultDest
protected java.lang.String homePage
protected int sessionTimeout
protected int cookieTimeout
protected boolean allowAutoLogin
protected java.lang.String workingDir
protected java.util.HashSet workingDirFiles
protected int refreshWorkingDir
protected java.lang.String documentRoot
protected java.lang.String sessionParamName
protected long lastCheckTime
protected java.lang.String repositoryDir
protected SessionComparator sessionComparator
protected java.util.HashMap map
protected DefaultDestinationDeterminer determiner
Constructor Detail |
public JspServiceManager()
Method Detail |
protected void initDeterminer()
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
config
- a ServletConfig configurationServletException
- protected boolean stillAlive(javax.servlet.http.HttpServletRequest aRequest)
aRequest
- the HttpServletRequest to get the session fromprotected boolean userStillExist(java.lang.String aUser, javax.servlet.http.HttpServletRequest aRequest)
aUser
- the user nameaRequest
- the HttpServletRequestprotected java.lang.String determineDestination(javax.servlet.http.HttpServletRequest req)
req
- the HttpServletRequestprotected void appendParameters(java.lang.String key, java.lang.String[] values, java.lang.StringBuffer sb)
key
- the string keyvalues
- the String array of associated values to the keysb
- the stringbuffer to continue fillingprotected void redirect(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String aDestination) throws java.io.IOException
req
- the HttpServletRequestres
- the HttpServletResponceadestination
- the destination with a query stringIOException
- protected boolean validDestination(java.lang.String aDestination, java.io.File ignore) throws java.io.IOException
a
- destination the destinationf
- ignoredIOException
- protected boolean validDestination(java.lang.String aDestination) throws java.io.IOException
a
- destination the destinationIOException
- protected javax.transaction.UserTransaction startTx()
UserTransaction
protected void finishTx(javax.transaction.UserTransaction tx, javax.servlet.http.HttpServletRequest req)
tx
- UserTransaction
req
- the HttpServletRequestprotected java.lang.String setTransactionalAttributes(javax.servlet.http.HttpServletRequest req, java.lang.String aDestination) throws java.rmi.RemoteException
req
- the HttpServletRequestaDestination
- the destination URLString
if it is suspended this will be the suspended url.RemoteException
- protected void getWorkingDirFiles(java.io.File aDirectory)
workingDir
.aDirectory
- a File object representing a directory.protected void getWorkingDirFiles()
public void baseReset(javax.servlet.http.HttpServletRequest aRequest)
aRequest
- the HttpServletRequestprotected void resetSession(javax.servlet.http.HttpServletRequest aRequest)
aRequest
- the HttpServletRequest to get the session fromprotected java.lang.String initSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException
req
- the HttpServletRequestres
- the HttpServletResponseIOException
- public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException
req
- the HttpServletRequestres
- the HttpServletResponseIOException
- ServletException
-
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |