checkSession
public WebClientSession checkSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
Checks to see the the user is logged in, (has an valid connected
MXSession). If not, tries to log the user in, if the credentials are in
the request or maximo is using appsever security.
This method will redirect the user to the appropriate "page" based on
their connection status. If the user is not logged in, and app server
isn't using appserver security, the user will be redirected to the login
page.
If the user has timed out, either HttpSession WebClientSession, timeout
the user will be redirected to the logout page.
Returns the current WebCLientSession for the request. If there isn't one,
one will be created upon successfully obtaining a MXSession connection
and if the WebCLientSessionFactory has available sessions. If unable to
create a new instance of MXSession or WebClientSession (if either one is
needed), this method will return null and send a 503
(SC_SERVICE_UNAVAILABLE) error response to the client. This method will
also return null if the user was redirected to another page (most likely
the login, logout, or loginerror page).
- Parameters:
request
-
response
-
- Returns:
- WebClientSession for the request
- Throws:
java.io.IOException