|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vrspace.util.Message org.vrspace.server.Request
This class represents a single request from the client. It extends Message to adding request logging capabilites, and also adds Client
RequestLog
Field Summary | |
protected Client |
client
|
java.lang.Exception |
exception
|
VRObject |
object
|
protected boolean |
sendObject
|
protected Session |
session
|
Fields inherited from class org.vrspace.util.Message |
arguments, className, eventName, eventValue, isResponse, objectId, path, request, response, time |
Constructor Summary | |
Request(Client c,
java.lang.String request)
Creates new Request as specified by request |
|
Request(Client c,
VRObject obj)
This constructor is intended to send object over net |
|
Request(Request r,
java.lang.String request)
This constructor uses client and session info from passed request. |
Method Summary | |
java.lang.Object |
clone()
|
Client |
getClient()
Returns the originating client |
VRObject |
getObject()
Returns wrapped object. |
boolean |
isEvent()
Returns true if this request represents an event (VRObject state change) rather than an object. |
boolean |
sendObject()
Returns true if this Request contains a VRObject intended for transfer over network. |
java.lang.String |
toLogEntry()
Returns request string suitable for logging |
java.lang.String |
toString()
If this request contains VRObject, returns its toText(), otherwise returns Message.toString() |
Methods inherited from class org.vrspace.util.Message |
getArguments, getClassName, getEventName, getEventValue, getId, getID, getPath, getRequest, getResponse, getTime, isResponse, parseLine |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Client client
protected Session session
protected boolean sendObject
public java.lang.Exception exception
public VRObject object
Constructor Detail |
public Request(Client c, java.lang.String request)
public Request(Request r, java.lang.String request)
public Request(Client c, VRObject obj)
Method Detail |
public Client getClient()
public java.lang.String toLogEntry()
public java.lang.String toString()
toString
in class Message
public boolean sendObject()
public boolean isEvent()
public VRObject getObject()
public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |