Class Https


  • public class Https
    extends Object
    • Constructor Detail

      • Https

        public Https()
    • Method Detail

      • doesUrlReturnOK

        public static Waiter doesUrlReturnOK​(String url)
      • doesUrlReturnCode

        public static Waiter doesUrlReturnCode​(String url,
                                               int expectedCode)
      • doesUrlReturnCode

        public static Waiter doesUrlReturnCode​(String url,
                                               int expectedCode,
                                               int failCode)
      • doesUrlResponseEqual

        public static Waiter doesUrlResponseEqual​(String url,
                                                  String string)
      • doesUrlResponseStartWith

        public static Waiter doesUrlResponseStartWith​(String url,
                                                      String string)
      • doesUrlResponseContain

        public static Waiter doesUrlResponseContain​(String url,
                                                    String... strings)
      • getCode

        public static int getCode​(String url)
      • getContent

        public static String getContent​(String url)
      • httpGetCode

        public static int httpGetCode​(String url)
      • httpGetCode

        public static int httpGetCode​(URL url)
      • httpGetContent

        public static String httpGetContent​(String url)
      • httpGetContent

        public static String httpGetContent​(URL url)
      • httpsGetCode

        public static int httpsGetCode​(String url)
      • httpsGetCode

        public static int httpsGetCode​(URL url)
      • httpsGetContent

        public static String httpsGetContent​(String url)
      • httpsGetContent

        public static String httpsGetContent​(URL url)
      • copyHttpsURLToFile

        public static void copyHttpsURLToFile​(String source,
                                              File destination,
                                              int connectionTimeout,
                                              int readTimeout)
                                       throws IOException
        Throws:
        IOException
      • copyHttpsURLToFile

        public static void copyHttpsURLToFile​(URL source,
                                              File destination,
                                              int connectionTimeout,
                                              int readTimeout)
                                       throws IOException
        Throws:
        IOException