|
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.Action
The Action class is a container of information for the user's current HTTP request and all subsequent Next command transactions. Action uses input parameters contained in the UserStateObject object and the HttpMessage object.
Specific functionality such as the NEXTCMD format is specified as follows:
:next=NEXTCMD%7F
HttpMessage
,
UserStateObject
Field Summary | |
protected String |
className
String representing the class from the URL in the current transaction. |
DataPairs |
cookie_widgets
DataPairs object containing the name/value data pairs from the "Cookie" HTTP Header in the current transaction. |
protected static String |
documentRoot
String location where the document root directory is defined by the JaSSI Server ini file. |
protected String |
mimeTypeExt
String representing the Mime type extension from the URL in the current transaction. |
protected static String |
nameSpace
String namespace as defined by the JaSSI Server ini file. |
protected String |
nextCmd
String representing the Next command from the URL in the current transaction. |
protected String |
rawWidgets
String representing the raw widgets from the URL in the current transaction. |
protected String |
uri
String representing the URI from the URL in the current transaction. |
DataPairs |
widgets
DataPairs object containing the name/value data pairs from the URL in the current transaction. |
Constructor Summary | |
Action()
Constructs an Action Object. |
|
Action(UserStateObject u,
HttpMessage httpObj)
Constructs a Action object using input parameters of a UserStateObject object and an HttpMessage object. |
Method Summary | |
String |
getClassName()
Returns the class name as parsed from the URL of the current transaction. |
static String |
getDocumentRoot()
Returns the document root directory within JaSSI. |
String |
getMimeTypeExt()
Returns the mime type extension as parsed from the URL of the current transaction. |
String |
getRawWidgets()
Returns the raw widgets as parsed from the URL of the current transaction. |
String |
getUri()
Returns the URI as parsed from the URL of the current transaction. |
static String |
hackUri(String uri)
|
void |
init(String aurl)
Takes an HTTP request message and breaks the message into a URI, tokenizes the widgets from the input parameter HTTP URI, and parses out the class or html file to load. |
void |
init(String aurl,
String abodyUrl)
Takes an HTTP request message and breaks the message into a URI, tokenizes the widgets from the input parameters HTTP URI and HTTP BODY, and parses out the class or html file to load. |
void |
init(String aurl,
String abodyUrl,
String cookie_data)
Takes an HTTP request message and breaks the message into a URI, tokenizes the widgets from the input parameters HTTP URI and HTTP BODY, and parses out the class or html file to load. |
void |
removeRawWidgetData(String name)
Removes a name/value pair from the rawWidgets String using the input parameter String as the key to the widget. |
Vector |
setupClassOrder()
Sets up the order in which to load the class or html file parsed from the HTTP request based on the package order defined in the JaSSI Server ini file. |
DataPairs |
tokenizeWidgets(String data)
Parses the raw widgets passed in as the String parameter and stores them as name/value pairs in a Datapairs object. |
DataPairs |
tokenizeWidgets(String data,
String separator)
Parses the raw widgets passed in as the String parameter and stores them as name/value pairs in a Datapairs object. |
String |
toString()
Generates the String representation of the object. |
String |
unescape(String s)
Decodes a URL encoded HTTP request. |
DataPairs |
widgets()
Returns the Widgets vector from the URL of the current transaction. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected String className
public DataPairs cookie_widgets
protected static String documentRoot
protected String mimeTypeExt
protected static String nameSpace
protected String nextCmd
protected String rawWidgets
protected String uri
public DataPairs widgets
Constructor Detail |
public Action()
public Action(UserStateObject u, HttpMessage httpObj)
u
- the user's UserStateObject.httpObj
- the current transaction's HttpMessage Object.Method Detail |
public final String getClassName()
public static final String getDocumentRoot()
public final String getMimeTypeExt()
public final String getRawWidgets()
public final String getUri()
public void init(String aurl)
aurl
- the URL received in the current transaction.public void init(String aurl, String abodyUrl)
aurl
- the URL received in the current transaction.abodyUrl
- the BODY received in the current transaction.public void init(String aurl, String abodyUrl, String cookie_data)
aurl
- the URL received in the current transaction.abodyUrl
- the BODY received in the current transaction.cookie_data
- the Cookie received in the current transaction.public static String hackUri(String uri)
public final void removeRawWidgetData(String name)
name
- the widget to remove from the raw widgets String.public String unescape(String s)
s
- the string to be decoded.public final Vector setupClassOrder()
public final DataPairs tokenizeWidgets(String data)
data
- the String of raw widgets for the current transaction.public final DataPairs tokenizeWidgets(String data, String separator)
data
- the String of raw widgets for the current transaction.separator
- the String used as a token terminator.public final String toString()
public final DataPairs widgets()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |