|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.comm.HttpCommunicator
public class HttpCommunicator
Communicates using http protocol
Constructor Summary | |
---|---|
HttpCommunicator(java.lang.String inBaseUrlString)
|
|
HttpCommunicator(java.net.URL inBaseUrl)
|
Method Summary | |
---|---|
void |
disable()
Disable the communicator so that it does not update the server |
void |
enable()
Enable the communicator so that it does update the server |
java.io.BufferedReader |
get(java.lang.String learnObj,
boolean result)
Uses get() method to send data to the UM server - to be implemented by all inheriting classes |
static void |
main(java.lang.String[] args)
|
java.io.BufferedReader |
post(java.lang.String learnObj,
boolean result)
Uses post() method to send data to the UM server - to be implemented by all inheriting classes |
java.io.InputStream |
sendGetMessage()
Issues a GET request with no query string. |
java.io.InputStream |
sendGetMessage(java.util.Properties args)
Issues a GET request with query string. |
java.io.InputStream |
sendPostMessage()
Issues a POST request with no query string |
java.io.InputStream |
sendPostMessage(java.util.Properties args)
Issues a POST request. |
java.io.InputStream |
sendPostMessage(java.io.Serializable obj)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpCommunicator(java.lang.String inBaseUrlString)
public HttpCommunicator(java.net.URL inBaseUrl)
Method Detail |
---|
public java.io.InputStream sendGetMessage() throws java.io.IOException
java.io.IOException
public java.io.InputStream sendGetMessage(java.util.Properties args) throws java.io.IOException
java.io.IOException
public java.io.InputStream sendPostMessage() throws java.io.IOException
java.io.IOException
public java.io.InputStream sendPostMessage(java.util.Properties args) throws java.io.IOException
java.io.IOException
public java.io.InputStream sendPostMessage(java.io.Serializable obj) throws java.io.IOException
java.io.IOException
public void disable()
public void enable()
public java.io.BufferedReader get(java.lang.String learnObj, boolean result)
public java.io.BufferedReader post(java.lang.String learnObj, boolean result)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |