|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.jassi.RequestManager
The RequestManager class defines methods used for accessing the user's current HttpMessage object, setting up the HTTP response, and processing of URL commands, Next commands, Post Process commands and HTTP redirection.
RequestManager also provides methods to handle entity substitution into HTML pages, reading of HTML pages based upon the URL command and Next commands, and the URL encoding of HTML pages.
HttpMessage
,
Action
Field Summary | |
Action |
action
Action object used within this RequestManager object. |
UserStateObject |
user
UserStateObject object for the current user. |
Constructor Summary | |
RequestManager()
Constructs a RequestManager object. |
|
RequestManager(UserStateObject user,
HttpMessage httpObject)
Constructs a RequestManager object using the input UserStateObject and HttpMessage object. |
Method Summary | |
void |
appendParmstoNext(String parms)
Appends the input parameter String to the existing Next command. |
boolean |
deletingUser()
Checks if the delete user flag has been set. |
String |
doEntitySubstitution(String output)
|
String |
doEntitySubstitution(String output,
int level)
Locates entities in the HTML response passed in as a String and substitutes their correct value as they exist in the user's UserStateObject object. |
String |
doEntitySubstitution(String output,
StringBuffer newPage,
int level)
|
static String |
escape(String s)
HTML encodes the input String for display in HTML. |
static void |
escapeAndAppend(String s,
StringBuffer sbuf)
|
String |
getFailurePage()
Returns the failure page as defined in the JaSSI Server ini file. |
String |
getFilteredReferer()
Returns the Referer header URL without the HTTP and Peer-Host information. |
static String |
getHostName()
Returns the hostname where JaSSI is running. |
String |
getHtmlPage()
Returns the HTML page currently stored in the RequestManager object. |
String |
getHTTPHeader(String body)
Returns the HTTP header for the HTTP response using the input HTTP body String. |
DataPairs |
getHttpMsg()
Returns a DataPairs object containing the current transaction's HTTP request. |
HttpMessage |
getHttpObject()
Returns the current transaction's HttpMessage object. |
String |
getHttpResponse()
Returns the HTTP response. |
String |
getHTTPResponseStatus()
Returns the HTTP Response Status Code and Message. |
String |
getHTTPResponseStatusCode()
Returns the HTTP Response Status Code. |
String |
getHTTPResponseStatusMsg()
Returns the HTTP Response Status Message. |
static int |
getJaSSIPort()
Returns the JaSSI Server port. |
String |
getNext()
Returns the Next command to process. |
String |
getPostProcess()
Returns the Post Process command. |
boolean |
hasNext()
Tests to see if a Next command has been setup. |
void |
makeNext(String nextUrl)
Sets the Next command to process to the input parameter String. |
void |
makePostProcess(String cmd)
Sets the Post Process command to run after an HTTP response has been returned on this thread. |
String |
parseOclcApp(String htmlString)
|
void |
processCommand(JaSSIClassLoader loader,
boolean doPostProcess)
Manages the execution of the current URL command and all subsequent Next command transactions and Post Processing commands. |
void |
putHtmlPage(String s)
Puts an HTML page into the RequestManager object. |
void |
putHttpResponse(String s)
Puts an HTTP response into the RequestManager object using the input String response. |
void |
putHttpResponseBody(String s)
Puts an HTTP response into the RequestManager object using the input String response. |
void |
putHttpResponseHeader(String name,
String value)
Puts an HTTP header into the RequestManager object using the input header name and value. |
void |
putHttpResponseStatus(String statusCode,
String statusMsg)
Puts an HTTP Response Status Code and Message into the RequestManager object. |
String |
readHtmlFile(String fileName)
Reads in an HTML file using the input String file name, |
void |
setDeleteUser()
Sets the delete user flag to true. |
void |
setMimeType(String mimeType)
Sets the mime type for the current HTTP response. |
String |
toString()
Generates the String representation of this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public Action action
public UserStateObject user
Constructor Detail |
public RequestManager()
public RequestManager(UserStateObject user, HttpMessage httpObject)
user
- the UserStateObject object.httpObject
- the user's current transaction HttpMessage object.Method Detail |
public final void appendParmstoNext(String parms)
parms
- the widgets to append to the Next command.public final boolean deletingUser()
public String doEntitySubstitution(String output)
public String doEntitySubstitution(String output, int level)
output
- the HTML response page before entity substitution.public String doEntitySubstitution(String output, StringBuffer newPage, int level)
public static String escape(String s)
s
- the string to be URL encoded.public static void escapeAndAppend(String s, StringBuffer sbuf)
public final String getFailurePage()
public final String getFilteredReferer()
public static final String getHostName()
public final String getHtmlPage()
public final String getHTTPHeader(String body)
body
- the HTTP body response String.public final DataPairs getHttpMsg()
public final HttpMessage getHttpObject()
public final String getHttpResponse()
public final String getHTTPResponseStatus()
public final String getHTTPResponseStatusCode()
public final String getHTTPResponseStatusMsg()
public static final int getJaSSIPort()
public final String getNext()
public final String getPostProcess()
public final boolean hasNext()
public final void makeNext(String nextUrl)
nextUrl
- the Next command to process.public final void makePostProcess(String cmd)
cmd
- the Post Processing command.public String parseOclcApp(String htmlString)
public final void processCommand(JaSSIClassLoader loader, boolean doPostProcess)
If a Post Process command has been set, it will be executed after an HTTP response has been sent back from JaSSI.
loader
- the JaSSIClassLoader object.doPostProcess
- sets a flag to handle a Post Processing command.public final void putHtmlPage(String s)
s
- the HTML page.public final void putHttpResponse(String s)
s
- the HTTP response String.public final void putHttpResponseBody(String s)
s
- the HTTP response String.public final void putHttpResponseHeader(String name, String value)
name
- the HTTP header name.value
- the HTTP header value.public final void putHttpResponseStatus(String statusCode, String statusMsg)
statusCode
- the HTTP Response Status Code.statusMsg
- the HTTP Response Status Message.public String readHtmlFile(String fileName)
fileName
- the name of the HTML file to read.public final void setDeleteUser()
public final void setMimeType(String mimeType)
mimeType
- the mime type extension to set for the HTTP response.public final String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |