|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CamsHttpAgentResponse
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. |
String |
getMessage()
Get a context sensitive response message. |
RemoteSession |
getSession()
Returns the Cams session. |
CamsHttpAgentStatusCode |
getStatus()
Gets the current status code for this response. |
void |
recycle()
Recycle the CamsHttpAgentResponse for reuse. |
void |
redirectToLoginPage(String camsLoginUrl,
Map queryParameters)
Redirects the user to the Cams login page. |
void |
sendRedirect(String location)
Sends a temporary redirect response to the client using the specified redirect location URL. |
void |
setAccessDenied(String message)
Set an access denied response status and a context-sensitive message. |
void |
setContentType(String contentType)
Sets the content type of this response. |
void |
setError(String message)
Set an error response status and a context-sensitive error message. |
void |
setSession(RemoteSession session)
Sets the Cams session. |
void |
setStatus(CamsHttpAgentStatusCode status)
Sets the status code for this response. |
| Method Detail |
|---|
void addCookie(javax.servlet.http.Cookie cookie)
cookie - the Cookie to return to the clientvoid sendRedirect(String location)
location - the redirect location URLvoid setStatus(CamsHttpAgentStatusCode status)
status - the new status codeCamsHttpAgentStatusCode getStatus()
void setError(String message)
message - the error message.void setAccessDenied(String message)
message - the access denied message.String getMessage()
void setSession(RemoteSession session)
session - Contains information about a user that has logged into
CamsRemoteSession getSession()
void setContentType(String contentType)
contentType - the content type of this response
void redirectToLoginPage(String camsLoginUrl,
Map queryParameters)
camsLoginUrl - the Url of the Cams login pagequeryParameters - a Map of query parameters to be appended to the
camsLoginUrl.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.
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 | |||||||||