|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.flow.jsp.DefaultDestinationDeterminer
Field Summary | |
protected boolean |
allowAutoLogin
Whether the portal allows auto-login upon portal invocation. |
protected int |
cookieTimeout
The time (in milliseconds) which elapses before the portal cookie is timed outl The cookie defaults to timing out when the browser is closed. |
protected java.lang.String |
defaultDest
The portal's default destination. |
protected java.lang.String |
documentRoot
The server's document root. |
protected java.lang.String |
groupName
The group name associated with the portal instance. |
protected java.lang.String |
homePage
The portal's home page. |
protected boolean |
inited
|
protected long |
lastCheckTime
The last time the working directory was checked. |
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 portal session is timed out. |
protected java.lang.String |
trafficURI
The URI of the DefaultDestinationHandler. |
protected java.lang.String |
workingDir
The working directory, relative the server's document root, of the portal instance. |
protected java.util.HashSet |
workingDirFiles
This is the list of files contained within the working directory. |
Constructor Summary | |
DefaultDestinationDeterminer()
|
Method Summary | |
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. |
java.lang.String |
determineDestination(javax.servlet.http.HttpServletRequest req)
Figure out what the real destination is. |
java.lang.Object |
determineDestination(javax.servlet.ServletConfig aConfig,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.util.Map aPropertySet)
Implements the service method of the servlet. |
boolean |
getAllowAutoLogin()
|
int |
getCookieTimeout()
|
java.lang.String |
getDefaultDest()
|
java.lang.String |
getDocumentRoot()
|
java.lang.String |
getGroupName()
|
java.lang.String |
getHomePage()
|
long |
getLastCheckTime()
|
int |
getRefreshWorkingDir()
|
java.lang.String |
getRepositoryDir()
|
SessionComparator |
getSessionComparator()
|
java.lang.String |
getSessionParamName()
|
int |
getSessionTimeout()
|
java.lang.String |
getTrafficURI()
|
java.lang.String |
getWorkingDir()
|
java.util.HashSet |
getWorkingDirFiles()
|
void |
getWorkingDirFiles(java.io.File aDirectory)
Get the working directory files. |
void |
getWorkingDirFiles(javax.servlet.ServletConfig aConfig)
Get working dir files. |
void |
init(javax.servlet.ServletConfig aConfig,
java.util.Map aPropertySet)
Initializes the servlet. |
java.lang.String |
initSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handles the session initialization. |
boolean |
isWar(javax.servlet.ServletContext ctx)
Determines if the context is deployed as a WAR file |
boolean |
isWar(javax.servlet.ServletContext ctx,
java.lang.String aDestination)
Determines if the context and destination is deployed as a WAR file. |
boolean |
isWebApp(javax.servlet.http.HttpServletRequest req)
Determines if the context for a request is for a web app. |
void |
redirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String aDestination)
If the destination contains a '?' (for parms). |
void |
resetSession(javax.servlet.http.HttpServletRequest aRequest)
Reset the session to a known state. |
java.lang.String |
setTransactionalAttributes(javax.servlet.http.HttpServletRequest req,
java.lang.String aDestination)
Set transactional attributes on the request. |
boolean |
stillAlive(javax.servlet.http.HttpServletRequest aRequest)
Check to see if the session has timed out. |
boolean |
userStillExist(java.lang.String aUser,
javax.servlet.http.HttpServletRequest aRequest)
Does the user still exist - is this user still in the system? |
boolean |
validDestination(javax.servlet.ServletConfig aConfig,
java.lang.String aDestination)
Check if the destination is valid. |
boolean |
validDestination(javax.servlet.ServletConfig aConfig,
java.lang.String aDestination,
java.io.File ignore)
Deprecated. see validDestination(String) |
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 boolean inited
Constructor Detail |
public DefaultDestinationDeterminer()
Method Detail |
public java.lang.String getTrafficURI()
public java.lang.String getGroupName()
public java.lang.String getDefaultDest()
public java.lang.String getHomePage()
public int getSessionTimeout()
public int getCookieTimeout()
public boolean getAllowAutoLogin()
public java.lang.String getWorkingDir()
public java.util.HashSet getWorkingDirFiles()
public int getRefreshWorkingDir()
public java.lang.String getDocumentRoot()
public boolean isWebApp(javax.servlet.http.HttpServletRequest req)
req
- The HttpServletRequest associated with this handler.public boolean isWar(javax.servlet.ServletContext ctx)
ctx
- The ServletContext associated with this handler.public boolean isWar(javax.servlet.ServletContext ctx, java.lang.String aDestination)
ctx
- The ServletContext associated with this handler.aDestination
- The request's intended destinationpublic java.lang.String getSessionParamName()
public long getLastCheckTime()
public java.lang.String getRepositoryDir()
public SessionComparator getSessionComparator()
public void init(javax.servlet.ServletConfig aConfig, java.util.Map aPropertySet) throws FlowException
aPropertySet
- the start up parameters for the portal.FlowException
- public boolean stillAlive(javax.servlet.http.HttpServletRequest aRequest)
aRequest
- the HttpServletRequest to get the session frompublic boolean userStillExist(java.lang.String aUser, javax.servlet.http.HttpServletRequest aRequest)
aUser
- the user nameaRequest
- the HttpServletRequestpublic java.lang.String determineDestination(javax.servlet.http.HttpServletRequest req)
req
- the HttpServletRequestpublic 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 fillingpublic 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
- public boolean validDestination(javax.servlet.ServletConfig aConfig, java.lang.String aDestination, java.io.File ignore) throws java.io.IOException
a
- destination the destinationf
- ignoredIOException
- public boolean validDestination(javax.servlet.ServletConfig aConfig, java.lang.String aDestination) throws java.io.IOException
a
- destination the destinationIOException
- public 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
- public void getWorkingDirFiles(java.io.File aDirectory)
workingDir
.aDirectory
- a File object representing a directory.public void getWorkingDirFiles(javax.servlet.ServletConfig aConfig)
public void baseReset(javax.servlet.http.HttpServletRequest aRequest)
aRequest
- the HttpServletRequestpublic void resetSession(javax.servlet.http.HttpServletRequest aRequest)
aRequest
- the HttpServletRequest to get the session frompublic java.lang.String initSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException
req
- the HttpServletRequestres
- the HttpServletResponseIOException
- public java.lang.Object determineDestination(javax.servlet.ServletConfig aConfig, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.util.Map aPropertySet) throws FlowException
req
- the HttpServletRequestres
- the HttpServletResponseIOException
- FlowException
-
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |