public class HttpMessage
extends java.lang.Object
implements java.io.Serializable
HttpMessage
.Constructor and Description |
---|
HttpMessage(java.net.URL url,
java.lang.String message)
Prepare the sender with a given url and the message to send.
|
HttpMessage(java.net.URL url,
java.lang.String message,
boolean async)
Prepare the sender with a given url and the message to send.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
formatOutputMessageInternal(java.lang.String message)
Encodes the message in UTF-8 format in preparation to send.
|
public HttpMessage(java.net.URL url, java.lang.String message)
url
- the url to which the message will be sent.message
- the message itself.public HttpMessage(java.net.URL url, java.lang.String message, boolean async)
url
- the url to which the message will be sent.message
- the message itself.async
- whether the message should be sent asynchronously.