|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines an interface that normalizes a container-specific HTTP response into an HTTP container-independent form that can be used by a Cafesoft AccessControlAgent.
| Method Summary | |
void |
addCookie(javax.servlet.http.Cookie cookie)
Adds the specified cookie to the response. |
void |
destroy()
Destroy the CamsHttpAgentResponse. |
RemoteSession |
getSession()
Returns the Cams session. |
CamsHttpAgentStatusCode |
getStatus()
Gets the current status code for this response. |
void |
recycle()
Recycle the CamsHttpAgentResponse for reuse. |
void |
redirectToDeniedPage(String message,
String reason,
ResourceRequest resourceRequest)
Redirect the user to the Cams access denied page. |
void |
redirectToErrorPage(String message)
Redirects the user to the Cams error page. |
void |
redirectToLoginPage(String camsLoginUrl,
String securityDomain)
Redirects the user to the Cams login page. |
void |
sendErrorPage(String message)
Displays the Cams default error page. |
void |
sendRedirect(String location)
Sends a temporary redirect response to the client using the specified redirect location URL. |
void |
setContentType(String contentType)
Sets the content type of this response. |
void |
setSession(RemoteSession session)
Sets the Cams session. |
void |
setStatus(CamsHttpAgentStatusCode status)
Sets the status code for this response. |
| Method Detail |
public void addCookie(javax.servlet.http.Cookie cookie)
cookie - the Cookie to return to the clientpublic void sendRedirect(String location)
location - the redirect location URLpublic void setStatus(CamsHttpAgentStatusCode status)
status - the new status codepublic CamsHttpAgentStatusCode getStatus()
public void setSession(RemoteSession session)
session - Contains information about a user that has logged into
Camspublic RemoteSession getSession()
public void setContentType(String contentType)
contentType - the content type of this response
public void redirectToLoginPage(String camsLoginUrl,
String securityDomain)
camsLoginUrl - the Url of the Cams login pagesecurityDomain - the Cams security domain to login topublic void redirectToErrorPage(String message)
message - the error message to send with the redirectpublic void sendErrorPage(String message)
message - the message to display
public void redirectToDeniedPage(String message,
String reason,
ResourceRequest resourceRequest)
message - the message to send with the redirectreason - the reason why access was deniedresourceRequest - represents a user or system's request for a
generic Resource, which may be protected by the Cafesoft Access
Management Systempublic void recycle()
This method will return the CamsHttpAgentResponse object back to it's original creation state. That means any underlying collections should be cleared and not destroyed.
public void destroy()
This method will destroy the CamsHttpAgentResponse object. This method should be used when the CamsHttpAgentResponse will no longer be used. This method should destroy everything including underlying collections.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||