|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.prolixtech.jaminid.Request
public class Request
The request class encapsulates an HTTP request. It is responsible for splitting up the query, processing POST forms, splitting to URI and URL, and once it is created, it is essentially a data struct for all this information.
Constructor Summary | |
---|---|
Request(Daemon activeDaemon,
Connection connx)
Creates a new request object |
Method Summary | |
---|---|
void |
addRequestLines(java.lang.String requestMessage)
Method Adds Request Lines |
void |
appendToBody(java.lang.String body)
appends more stuff to body of request |
boolean |
checkParam(java.lang.String param,
java.lang.String possvalue)
|
java.lang.String |
getBody()
Used in POST to return the body of the request |
Daemon |
getDaemon()
Returns the master daemon |
java.util.Map |
getHeader()
Returns header |
java.lang.String |
getIPAddressString()
|
java.lang.String |
getLocation()
Return the location sought |
java.lang.String |
getMessage()
Returns the entire request message |
java.lang.String |
getParam(java.lang.String key)
|
java.util.Map<java.lang.String,java.lang.String> |
getParamMap()
|
java.lang.String |
getParamOrNull(java.lang.String key)
|
java.lang.String |
getParamString()
|
java.lang.String |
getURI()
Returns the Uniform Resource Identifier |
boolean |
isRequestBad()
|
void |
setMethodLine(java.lang.String methodLine)
|
protected int |
switchToBody()
|
protected void |
switchToCompleted()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Request(Daemon activeDaemon, Connection connx)
activeDaemon
- the daemon that spawned the requestconnx
- the connection that produced this requestMethod Detail |
---|
public boolean isRequestBad()
public java.lang.String getURI()
public java.lang.String getMessage()
public java.lang.String getBody()
public Daemon getDaemon()
public java.util.Map getHeader()
public java.util.Map<java.lang.String,java.lang.String> getParamMap()
public java.lang.String getLocation()
public void setMethodLine(java.lang.String methodLine)
methodLine
- the method line of the requestpublic void appendToBody(java.lang.String body)
body
- what to appendpublic void addRequestLines(java.lang.String requestMessage)
requestMessage
- the message to addpublic java.lang.String getIPAddressString()
protected int switchToBody()
protected void switchToCompleted()
public java.lang.String getParamString()
public java.lang.String getParam(java.lang.String key)
public java.lang.String getParamOrNull(java.lang.String key)
public boolean checkParam(java.lang.String param, java.lang.String possvalue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |