Class BasicCurlParser
-
- All Implemented Interfaces:
public class BasicCurlParserBasic cURL command parser that handles:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBasicCurlParser.Request
-
Constructor Summary
Constructors Constructor Description BasicCurlParser()
-
Method Summary
Modifier and Type Method Description BasicCurlParser.Requestparse(String commandLine)static Array<String>translateCommandline(String toProcess)Crack a command line. voidsetAuthUserPasswd(String authentication, String url, Authorization authorization)Set the username , password and baseurl of authorization static booleanisValidCookie(String str)Verify if the string is cookie or filename static List<Cookie>stringToCookie(String cookieStr, String url)Convert string to cookie -
-
Method Detail
-
parse
BasicCurlParser.Request parse(String commandLine)
-
translateCommandline
static Array<String> translateCommandline(String toProcess)
Crack a command line.
- Parameters:
toProcess- the command line to process.
-
setAuthUserPasswd
void setAuthUserPasswd(String authentication, String url, Authorization authorization)
Set the username , password and baseurl of authorization
- Parameters:
authentication- the username and password of authorizationurl- the baseurl of authorizationauthorization- 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 stringurl- to extract domain and path for the cookie from
-
-
-
-