Class HttpMessage

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpMessage
    extends java.lang.Object
    implements java.io.Serializable
    This is HttpMessage.
    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.String formatOutputMessageInternal​(java.lang.String message)
      Encodes the message in UTF-8 format in preparation to send.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • formatOutputMessageInternal

        protected java.lang.String formatOutputMessageInternal​(java.lang.String message)
        Encodes the message in UTF-8 format in preparation to send.
        Parameters:
        message - Message to format and encode
        Returns:
        The encoded message.