|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpUserSessionManager
HttpUserSessionManager is an extended interface of UserSessionManager for HTTP protocol.
| Method Summary | |
|---|---|
boolean |
checkLogin(javax.servlet.http.HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
Checks whether the request has login information. |
boolean |
checkLoginEx(javax.servlet.http.HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
Checks whether the request has login information. |
UserSession |
getUserSession(javax.servlet.http.HttpServletRequest req)
Gets a UserSession from a HttpServletRequest. |
UserSession |
loginMD5(java.lang.String realm,
java.lang.String userID,
java.lang.String digestResponse,
java.lang.String unquotedNonce,
java.lang.String digestURI,
java.lang.String httpMethod)
Logins a user in the digest MD5 method. |
void |
logout(javax.servlet.http.HttpServletRequest req)
Logouts a session by HttpServletRequest |
void |
removeExpiredUserSessions(javax.servlet.http.HttpServletRequest req)
Removes all expired user sessions. |
void |
sendUnauthorizedResponse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
Sends unauthorized information to request user. |
| Methods inherited from interface jet.server.monitor.api.UserSessionManager |
|---|
getAllUserSessions, getDefaultMaxInactiveInterval, getLastLoginTime, getUserSession, login, setDefaultMaxInactiveInterval |
| Method Detail |
|---|
UserSession getUserSession(javax.servlet.http.HttpServletRequest req)
UserSession from a HttpServletRequest.
req, - A HttpServletRequest
UserSession wrapped by the HttpServletRequest.
void sendUnauthorizedResponse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
throws java.io.IOException
req, - A HttpServletRequest.res, - A HttpServletResponse.authScheme, - The specified authentication scheme.realm, - The active realm of Report Server.
IOException, - When a IOException has occurred.
java.io.IOExceptionvoid removeExpiredUserSessions(javax.servlet.http.HttpServletRequest req)
req, - A HttpServletRequest.
boolean checkLogin(javax.servlet.http.HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
throws java.io.IOException,
InvalidUserSessionException
req, - A HttpServletRequest.realm, - The currently active realm of Report Server.query, - The parameter properties of the request.
java.io.IOException
InvalidUserSessionException
boolean checkLoginEx(javax.servlet.http.HttpServletRequest req,
java.lang.String realm,
java.util.Properties query)
throws java.io.IOException,
InvalidUserSessionException,
InvalidUserException
req, - A HttpServletRequest.realm, - The currently active realm of Report Server.query, - The parameter properties of the request.
InvalidUserException - if the user is not valid.
java.io.IOException
InvalidUserSessionException
UserSession loginMD5(java.lang.String realm,
java.lang.String userID,
java.lang.String digestResponse,
java.lang.String unquotedNonce,
java.lang.String digestURI,
java.lang.String httpMethod)
throws InvalidUserSessionException
realm - The realm.userID - The user ID.digestResponse - The digest response.unquotedNonce - The unquoted nonce.digestURI - The digest URI.httpMethod - The HTTP method.
UserSession.
InvalidUserSessionException, - if a InvalidUserSessionException has occurred.
InvalidUserSessionExceptionUserSessionvoid logout(javax.servlet.http.HttpServletRequest req)
HttpServletRequest
req, - A reference of HttpServletRequest.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||