|
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.portal.admin.PortalServiceManager
Acts as a traffic cop for a portal implementation. Provides redirection, forwarding, name-resolution, and security services.
| 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 java.lang.String |
portalName
The portal name associated with the portal instance. |
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 PortalServiceManager. |
protected java.lang.String |
workingDir
The working directory, relative the server's document root, of the portal instance. |
| Fields inherited from interface com.beasys.portal.admin.PortalAdminConstants |
DEFAULT_DESTINATION,
DESTINATION_URI,
FALSE,
IMMUTABLE_PORTAL_PAGE,
PORTAL_COOKIE_TIMEOUT,
PORTAL_GROUP,
PORTAL_LOGGED_IN,
PORTAL_MANAGER_A,
PORTAL_NAME,
PORTAL_PAGE,
PORTAL_PROPERTIES_A,
PORTAL_SESSION_TIMEOUT,
PORTAL_USER,
PROFILE_GROUP,
PROFILE_USER,
TRAFFIC_URI,
TRANSACTION_SERVICE,
TRANSACTION_TIMEOUT,
TRUE,
WORKING_DIR |
| Constructor Summary | |
PortalServiceManager()
|
|
| 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.jts.UserTransaction tx,
javax.servlet.http.HttpServletRequest req)
Finish tx. |
protected java.lang.String |
handleAttributes(javax.servlet.http.HttpServletRequest req,
java.lang.String aDestination)
Handle attributes. |
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet. |
protected java.lang.String |
initSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle 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 javax.jts.UserTransaction |
startTx()
Start tx. |
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)
User still exist. |
protected boolean |
validDestination(java.lang.String aDestination)
Check if the destination is valid. |
| 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,
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 portalName
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.lang.String documentRoot
protected java.lang.String sessionParamName
| Constructor Detail |
public PortalServiceManager()
| Method Detail |
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
the - configuration.public void baseReset(javax.servlet.http.HttpServletRequest aRequest)
the - request.
protected void resetSession(javax.servlet.http.HttpServletRequest aRequest)
throws java.io.IOException
the - sessionprotected boolean stillAlive(javax.servlet.http.HttpServletRequest aRequest)
the - session
protected boolean userStillExist(java.lang.String aUser,
javax.servlet.http.HttpServletRequest aRequest)
aUser - the user name.boolean yes/no.
protected java.lang.String initSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
protected java.lang.String determineDestination(javax.servlet.http.HttpServletRequest req)
the - request
protected void appendParameters(java.lang.String key,
java.lang.String[] values,
java.lang.StringBuffer sb)
the - key.the - associated values to the key.the - buffer to continue filling.
protected void redirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String aDestination)
throws java.io.IOException
the - request.the - response.the - destination with a query string.
protected boolean validDestination(java.lang.String aDestination)
throws java.io.IOException
the - destination.protected javax.jts.UserTransaction startTx()
UserTransaction
protected void finishTx(javax.jts.UserTransaction tx,
javax.servlet.http.HttpServletRequest req)
tx - req -
protected java.lang.String handleAttributes(javax.servlet.http.HttpServletRequest req,
java.lang.String aDestination)
throws java.rmi.RemoteException,
PortalObjectNotFoundException,
PortalFinderException,
PortalCreateException,
PortalException
req - aDestination - String if it is suspended this will be the suspended url.RemoteException - PortalObjectNotFoundException - PortalFinderException - PortalCreateException - PortalException -
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException,
javax.servlet.ServletException
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||