Class MHttp


  • public class MHttp
    extends Object
    • Constructor Detail

      • MHttp

        public MHttp()
    • Method Detail

      • getContentType

        public static String getContentType​(String extension)
      • getSharedClient

        public static org.apache.http.client.HttpClient getSharedClient()
        Provide a central http client for common use. It will be configured with system proxy and usual parameters
        Returns:
        the shared configured http client
      • setFormParameters

        public static void setFormParameters​(org.apache.http.client.methods.HttpPost action,
                                             String... values)
      • setFormParameters

        public static void setFormParameters​(org.apache.http.client.methods.HttpPost action,
                                             IProperties params)