android inventory agent 1.0.0

Code documentation

--- layout: codeDocumentation --- --- layout: codeDocumentation --- ConnectionHTTP
org.glpi.inventory.agent.utils

Class ConnectionHTTP

  • java.lang.Object
    • org.glpi.inventory.agent.utils.ConnectionHTTP


  • public class ConnectionHTTP
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static interface  ConnectionHTTP.DataCallback
      This is the return data interface
    • Constructor Summary

      Constructors 
      Constructor and Description
      ConnectionHTTP() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void runOnUI(java.lang.Runnable runnable) 
      static java.lang.String syncWebData(java.lang.String url, java.lang.String data)
      Get the data in a synchronous way
      static void webData(java.lang.String url, java.lang.String data, java.util.Map<java.lang.String,java.lang.String> header, ConnectionHTTP.DataCallback callback)
      Send information by post with a JSONObject and header
      • Methods inherited from class java.lang.Object

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

      • ConnectionHTTP

        public ConnectionHTTP()
    • Method Detail

      • runOnUI

        public static void runOnUI(java.lang.Runnable runnable)
      • webData

        public static void webData(java.lang.String url,
                                   java.lang.String data,
                                   java.util.Map<java.lang.String,java.lang.String> header,
                                   ConnectionHTTP.DataCallback callback)
        Send information by post with a JSONObject and header
        Parameters:
        url - String url
        data - JSONObject data to send
        header - Map with al the header information
        callback - DataCallback
      • syncWebData

        public static java.lang.String syncWebData(java.lang.String url,
                                                   java.lang.String data)
        Get the data in a synchronous way
        Parameters:
        url - the url
        JSONObject - the data
        string - HTPP methods
        Map - string header
Back to top