Package org.apereo.cas.util.http
Class HttpMessage
- java.lang.Object
-
- org.apereo.cas.util.http.HttpMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpMessage extends java.lang.Object implements java.io.SerializableThis isHttpMessage.- Since:
- 5.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringformatOutputMessageInternal(java.lang.String message)Encodes the message in UTF-8 format in preparation to send.
-
-
-
Constructor Detail
-
HttpMessage
public HttpMessage(java.net.URL url, java.lang.String message)Prepare the sender with a given url and the message to send.- Parameters:
url- the url to which the message will be sent.message- the message itself.
-
HttpMessage
public HttpMessage(java.net.URL url, java.lang.String message, boolean async)Prepare the sender with a given url and the message to send.- Parameters:
url- the url to which the message will be sent.message- the message itself.async- whether the message should be sent asynchronously.
-
-