|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.swt.client.ui.communication.DefaultRequestDispatcher
public class DefaultRequestDispatcher
Default implementation of a SwtRequestDispatcher
.
Constructor Summary | |
---|---|
DefaultRequestDispatcher(java.lang.String sessionID)
Constructor. |
Method Summary | |
---|---|
void |
request(SwtHttpRequest request,
SwtHttpResponseHandler responseHandler)
Sends an HTTP request to the server where the response's payload is in text form (in other words, it's not interpreted into other formats such as XML). |
void |
requestXML(SwtHttpRequest request,
SwtXmlResponseHandler responseHandler)
Sends an HTTP request to the server where the response's payload is supposed to be interpreted as an XML document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRequestDispatcher(java.lang.String sessionID)
sessionID
- The session ID to add as a header for each request, or null (or
empty) if the request dispatcher should not add session ID
headers to any requests that it sends.Method Detail |
---|
public void request(SwtHttpRequest request, SwtHttpResponseHandler responseHandler)
request
in interface SwtRequestDispatcher
request
- The HTTP request to send.responseHandler
- The asynchronous response handler for the request.public void requestXML(SwtHttpRequest request, SwtXmlResponseHandler responseHandler)
requestXML
in interface SwtRequestDispatcher
request
- The HTTP request to send.responseHandler
- The asynchronous response handler for the request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |