Class HttpRequestHelper


  • public class HttpRequestHelper
    extends Object
    Helper class for http requests.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • HttpRequestHelper

        public HttpRequestHelper()
    • Method Detail

      • createBoundary

        public static String createBoundary()
        Creates a random boundary string.
        Returns:
        the random boundary string
      • breakUp

        public static String[] breakUp​(String s,
                                       int columns)
        Breaks up the string into lines, using the specified hard line limit.
        Parameters:
        s - the string to break up
        columns - the hard line limt
        Returns:
        the broken up string