Class BasicCurlParser

  • All Implemented Interfaces:

    
    public class BasicCurlParser
    
                        

    Basic cURL command parser that handles:

    • Constructor Detail

      • BasicCurlParser

        BasicCurlParser()
    • Method Detail

      • setAuthUserPasswd

         void setAuthUserPasswd(String authentication, String url, Authorization authorization)

        Set the username , password and baseurl of authorization

        Parameters:
        authentication - the username and password of authorization
        url - the baseurl of authorization
        authorization - the object of authorization
      • isValidCookie

         static boolean isValidCookie(String str)

        Verify if the string is cookie or filename

        Parameters:
        str - the cookie to check
      • stringToCookie

         static List<Cookie> stringToCookie(String cookieStr, String url)

        Convert string to cookie

        Parameters:
        cookieStr - the cookie as a string
        url - to extract domain and path for the cookie from