|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.admin.RequestInfo
public class RequestInfo
This class defines a set of variables that are used to hold variables used in the process of handling an individual request in the admin interface.
| Constructor Summary | |
|---|---|
RequestInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates a new set of request state information using the provided request and response. |
|
| Method Summary | |
|---|---|
boolean |
generateHTML()
Indicates whether the response to the end user will be generated from the information in the HTML body string buffer. |
boolean |
generateSidebar()
Indicates whether the response generated based on the information in the HTML body string buffer will include the navigation sidebar. |
java.lang.StringBuffer |
getHTMLBody()
Retrieves the string buffer containing the main content that will be included in the HTML page generated and returned to the end user. |
java.lang.StringBuffer |
getInfoMessage()
Retrieves the string buffer containing the informational message that will be displayed at the top of the page to provide a warning, error, or notice to the end user in a prominent form. |
javax.servlet.http.HttpServletRequest |
getRequest()
Retrieves information about the request received from the end user. |
javax.servlet.http.HttpServletResponse |
getResponse()
Retrieves information about the response to send to the end user. |
java.lang.String |
getServletBaseURI()
Retrieves the base URI for the request. |
java.lang.String |
getUserIdentifier()
Retrieves the user identifier associated with the current user. |
void |
setGenerateHTML(boolean generateHTML)
Specifies whether the response to the end user should be generated from the information in the HTML body string buffer. |
void |
setGenerateSidebar(boolean generateSidebar)
Specifies whether the response generated based on the information in the HTML body string buffer should include the navigation sidebar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - Information about the HTTP request issued by the client.response - Information about the HTTP response that will be returned
to the client.| Method Detail |
|---|
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public java.lang.String getServletBaseURI()
public java.lang.String getUserIdentifier()
null if that is not available.public boolean generateHTML()
true if the response to the end user will be
generated from the information in the HTML body string buffer, or
false if the response will be generated by directly
accessing the servlet response.public void setGenerateHTML(boolean generateHTML)
generateHTML - Specifies whether the response to the end user should
be generated from the information in the HTML body
string buffer.public boolean generateSidebar()
generateHTML() returns true.
true if the response generated will include the
navigation sidebar, or false if it will not.public void setGenerateSidebar(boolean generateSidebar)
generateSidebar - Specifies whether the response generated should
include the navigation sidebar.public java.lang.StringBuffer getHTMLBody()
public java.lang.StringBuffer getInfoMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||