|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jproxy.proxy.callback.HttpCallbackServer
The implementation of remote object used to support callback This object is shared between several callers and one consumer. The callers an consumer are remote objects also. For each client that uses callbacks one instance of the class exists on the server. The remote object provides temporary storage for requests to be done on the client. All requests to perform callback on the client are stacked in the object. The client contacts the object in order to get the requests and then performs them in original order.
com.jproxy.util.FIFOStack| Constructor Summary | |
HttpCallbackServer(java.util.Hashtable env)
Constructs instance of remote object |
|
| Method Summary | |
void |
clear()
Removes all objects from the stack. |
boolean |
destroyRequest(boolean forceDestroy)
|
java.lang.Object |
getResult(java.lang.Object o)
The method may be used by invoker to get result of method call on callback object. |
int |
getSize()
Returns a number of elements in the stack. |
java.lang.Object |
invoke(java.lang.Object o)
|
boolean |
isPopActive()
|
java.lang.Object |
peek()
Peeks previosly pushed request object from stack without changing status of the stack. |
java.lang.Object |
pop()
Pops previosly pushed request object from stack. |
java.util.Vector |
popAll()
Paps all existing request objects from stack. |
java.util.Vector |
popAllWithResult(java.util.Vector results)
|
void |
push(java.lang.Object o)
Pushes the request object to FIFO stack. |
void |
setResult(java.lang.Object o)
The method may be used by client that hosts callback object to return the result of callback to invoker. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpCallbackServer(java.util.Hashtable env)
| Method Detail |
public void push(java.lang.Object o)
push in interface CallbackServero - object that must be pushed to stackpublic java.lang.Object invoke(java.lang.Object o)
invoke in interface CallbackServerpublic boolean isPopActive()
public java.lang.Object peek()
peek in interface CallbackServerpublic int getSize()
getSize in interface CallbackServerpublic java.lang.Object pop()
pop in interface CallbackServerpublic java.util.Vector popAll()
popAll in interface CallbackServerpublic void clear()
clear in interface CallbackServerpublic void setResult(java.lang.Object o)
setResult in interface CallbackServero - the result from method call on callback object.public java.util.Vector popAllWithResult(java.util.Vector results)
popAllWithResult in interface CallbackServerpublic java.lang.Object getResult(java.lang.Object o)
getResult in interface CallbackServero - object that describes sessionpublic boolean destroyRequest(boolean forceDestroy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||