com.prolixtech.jaminid
public class Request extends java.lang.Object
Constructor and Description |
---|
Request(Daemon activeDaemon,
Connection connx)
Creates a new request object
|
Modifier and Type | Method and Description |
---|---|
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() |
public Request(Daemon activeDaemon, Connection connx)
activeDaemon
- the daemon that spawned the requestconnx
- the connection that produced this requestpublic 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)