public class Session
extends java.lang.Object
| Constructor and Description |
|---|
Session(java.lang.String remoteIp,
io.netty.handler.codec.http.HttpRequest request)
Constructs a new
Session instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRequestId()
Returns the request ID.
|
void |
setCode(int code)
Sets the HTTP response code.
|
java.lang.String |
toString() |
public Session(java.lang.String remoteIp,
io.netty.handler.codec.http.HttpRequest request)
Session instance.remoteIp - the remote IP addressrequest - the HTTP requestpublic java.lang.String getRequestId()
public void setCode(int code)
code - the HTTP response codepublic java.lang.String toString()
toString in class java.lang.Object