|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.server.CallContext
Context for a function call. Objects of this kind are passed with a function call.
Method Summary | |
int |
getCallID()
Returns the assigned call ID. |
Element |
getDataElement()
Returns the data section of the request, if any. |
String |
getParameter(String name)
Returns the value of a parameter with the specificied name. |
String |
getRemoteAddr()
Returns the IP address of the host that requested this function. |
long |
getStart()
Returns the start time of the call. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public long getStart()
System.currentTimeMillis()
public String getParameter(String name) throws IllegalArgumentException
'_'
) cannot be retrieved.
name
- the name of the parameter, not null
.
null
if the parameter is
not set, never an empty string (""
) because it will be
returned as being null
.
IllegalArgumentException
- if name == null
.public Element getDataElement()
null
if the
function does not define a data section or if the data section sent is
empty.public int getCallID()
-1
is returned.
-1
if none is
assigned.public String getRemoteAddr()
String
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |