|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectxsul.dispatcher.routingtable.WSConnection
xsul.dispatcher.msg.wsconnection.MSGWSConnection
Working like a FIFO queue to forward messages from clients to one WS.
| Constructor Summary | |
MSGWSConnection(WS wsHttp)
Create a new connection with the specified WS by wsHttp; |
|
| Method Summary | |
void |
forwards(java.lang.Object[] request)
Forwards a request from a client to the Web Service and the response. |
boolean |
isKeepAlive()
Check if the conenction beetween the forwarder and the Web Sevice is keep alive. |
void |
put(XmlElement outMessage,
java.lang.String arguments,
SoapUtil soapUtil)
Put outMessage and arguments in the FIFO
queue to forward the message to the Web Service. |
void |
run()
Forward message from the queue during all the time where the connection is alive. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MSGWSConnection(WS wsHttp)
wsHttp;
wsHttp - information about the WS.| Method Detail |
public void run()
run in interface java.lang.RunnableRunnable.run()public void forwards(java.lang.Object[] request)
WSConnectionForwards a request from a client to the Web Service and the response.
Structure of the parameter request
request[0]: the HttpServerRequest from clientrequest[1]: the HttpServerResponse from clientrequest[2]: the arguments from client's http request
forwards in class WSConnectionrequest - the request, response and arguments.WSConnection.forwards(java.lang.Object[])public boolean isKeepAlive()
true if the connection is keep alive,
false else.
public void put(XmlElement outMessage,
java.lang.String arguments,
SoapUtil soapUtil)
throws java.lang.InterruptedException
outMessage and arguments in the FIFO
queue to forward the message to the Web Service.
outMessage - a valid WS-Addressing message.arguments - from the HTTP request.
java.lang.InterruptedException - if problems occur.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||