|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--apollo.HTTPRequest
This is the HTTPRequest object. It is used to hold information about a HTTPRequest and will be passed by PageBrokers. Copyright Joe Kislo, All Rights Reserved.
Field Summary | |
protected java.util.Hashtable |
headerElements
|
protected java.util.Hashtable |
requestElements
|
protected java.util.Hashtable |
requestFiles
|
protected java.lang.String |
servletPath
|
Constructor Summary | |
HTTPRequest()
|
|
HTTPRequest(java.util.Hashtable hashElements)
|
|
HTTPRequest(HTTPRequest req)
|
|
HTTPRequest(javax.servlet.http.HttpServletRequest req)
|
Method Summary | |
void |
deleteHeader(java.lang.String s)
Deletes the supplied header key |
java.lang.String |
get(java.lang.String para)
Fetches the first value stored in the HTTPRequest for the requested key. |
java.lang.String[] |
getArrayParameter(java.lang.String para)
Fetches an array of the values stored in the HTTPRequest for the requested key. |
HTTPFile |
getFile(java.lang.String para)
Fetches the first file stored in the HTTPRequest for the requested key. |
java.lang.String |
getHeader(java.lang.String s)
Returns the value for the header key requested |
java.util.Enumeration |
getHeaderNames()
Fetches an enumeration of the header names stored in this request |
java.lang.String |
getParameter(java.lang.String para)
Fetches the first value stored in the HTTPRequest for the requested key. |
java.util.Hashtable |
getRequestHash()
Returns the raw Hashtable holding the request elements |
java.util.Enumeration |
getRequestKeys()
Get request keys |
java.lang.String |
getServletPath()
This is usually a non-fully-qualified URL for the servlet. |
java.lang.String |
getValue(java.lang.String para)
Fetches the first value stored in the HTTPRequest for the requested key. |
java.util.Vector |
getVectorParameter(java.lang.String para)
Fetches a vector of the values stored in the HTTPRequest for the requested key. |
boolean |
hasKey(java.lang.String para)
Tests for the existance of the requested key |
boolean |
hasValue(java.lang.String para)
Tests for the existance of the requested key |
void |
putParameter(java.lang.String name,
java.lang.String val)
Sets a value in the HTTPRequest. |
void |
putParameter(java.lang.String name,
java.lang.String[] val)
Sets an array value in the HTTPRequest. |
void |
set(java.lang.String para,
java.lang.String str)
Sets a value in the HTTPRequest. |
void |
setFile(java.lang.String para,
HTTPFile file)
Sets a file valaue in the HTTPRequest. |
void |
setFile(java.lang.String para,
HTTPFile[] files)
Sets a set of file values in the HTTPRequest. |
void |
setHeader(java.lang.String key,
java.lang.String value)
Sets a value for the header key supplied |
void |
setParameter(java.lang.String para,
java.lang.String val)
Sets a value in the HTTPRequest. |
void |
setParameter(java.lang.String para,
java.lang.String[] val)
Sets an array value in the HTTPRequest. |
void |
setValue(java.lang.String para,
java.lang.String str)
Sets a value in the HTTPRequest. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable requestElements
protected java.util.Hashtable requestFiles
protected java.lang.String servletPath
protected java.util.Hashtable headerElements
Constructor Detail |
public HTTPRequest(javax.servlet.http.HttpServletRequest req)
public HTTPRequest(java.util.Hashtable hashElements)
public HTTPRequest()
public HTTPRequest(HTTPRequest req)
Method Detail |
public void putParameter(java.lang.String name, java.lang.String val)
public void putParameter(java.lang.String name, java.lang.String[] val)
public java.lang.String getServletPath()
public java.lang.String getParameter(java.lang.String para)
public java.util.Vector getVectorParameter(java.lang.String para)
public java.lang.String[] getArrayParameter(java.lang.String para)
public void setParameter(java.lang.String para, java.lang.String val)
public void setParameter(java.lang.String para, java.lang.String[] val)
public java.lang.String getValue(java.lang.String para)
public void setValue(java.lang.String para, java.lang.String str)
public HTTPFile getFile(java.lang.String para)
public void setFile(java.lang.String para, HTTPFile file)
public void setFile(java.lang.String para, HTTPFile[] files)
public java.lang.String get(java.lang.String para)
public void set(java.lang.String para, java.lang.String str)
public boolean hasValue(java.lang.String para)
public boolean hasKey(java.lang.String para)
public java.util.Enumeration getHeaderNames()
public java.lang.String getHeader(java.lang.String s)
public void setHeader(java.lang.String key, java.lang.String value)
public void deleteHeader(java.lang.String s)
public java.util.Hashtable getRequestHash()
public java.util.Enumeration getRequestKeys()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |