Class BaseHTTPSender.SendMsgRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    BaseHTTPSender

    protected class BaseHTTPSender.SendMsgRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    Runnable that sends a HTTP call and wait for the response.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SendMsgRunnable​(byte[] request, MsgSender.MsgCallback callback)
      Constructor when sending a byte array output (Usually using POST)
      protected SendMsgRunnable​(java.lang.String parameters, MsgSender.MsgCallback callback)
      Constructor when sending data as parameters in the URL (Usually using GET)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SendMsgRunnable

        protected SendMsgRunnable​(byte[] request,
                                  MsgSender.MsgCallback callback)
        Constructor when sending a byte array output (Usually using POST)
        Parameters:
        request - the request data to send.
        callback - the callback to signal result to.
      • SendMsgRunnable

        protected SendMsgRunnable​(java.lang.String parameters,
                                  MsgSender.MsgCallback callback)
                           throws MessageContentException
        Constructor when sending data as parameters in the URL (Usually using GET)
        Parameters:
        parameters - the parameters (excluding ?) to use in the request.
        callback - the callback to signal result to.
        Throws:
        MessageContentException
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable