All Packages Class Hierarchy This Package Previous Next Index
Class util.HttpMessage
java.lang.Object
|
+----util.HttpMessage
- public class HttpMessage
- extends Object
This class files allow the applet to communicate to the servlet
It can simulate POST/GET methods on a servlet
-
HttpMessage(URL)
- Constructor
-
sendGetMessage()
- GET request with zero arguments
-
sendGetMessage(Properties)
- GET request with arguments
-
sendPostMessage()
- POST request with zero arguments
-
sendPostMessage(Properties)
- POST request with a string to be posted
-
sendPostMessage(Serializable)
- POST request with posting a serializable object
HttpMessage
public HttpMessage(URL servlet)
- Constructor
- Parameters:
- servlet - URL
sendGetMessage
public InputStream sendGetMessage() throws IOException
- GET request with zero arguments
sendGetMessage
public InputStream sendGetMessage(Properties args) throws IOException
- GET request with arguments
- Parameters:
- args - Properties Contains the parameters to be submitted
with the GET request
sendPostMessage
public InputStream sendPostMessage() throws IOException
- POST request with zero arguments
sendPostMessage
public InputStream sendPostMessage(Serializable obj) throws IOException
- POST request with posting a serializable object
- Parameters:
- obj - Serializable The object to be posted
sendPostMessage
public InputStream sendPostMessage(Properties args) throws IOException
- POST request with a string to be posted
- Parameters:
- args - Properties Contains the parameters to be posted
All Packages Class Hierarchy This Package Previous Next Index