public class BasicCurlParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BasicCurlParser.Request |
Constructor and Description |
---|
BasicCurlParser() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidCookie(String str)
Verify if the string is cookie or filename
|
BasicCurlParser.Request |
parse(String commandLine) |
void |
setAuthUserPasswd(String authentication,
String url,
Authorization authorization)
Set the username , password and baseurl of authorization
|
static List<Cookie> |
stringToCookie(String cookieStr,
String url)
Convert string to cookie
|
static String[] |
translateCommandline(String toProcess)
Crack a command line.
|
public BasicCurlParser.Request parse(String commandLine)
public static String[] translateCommandline(String toProcess)
toProcess
- the command line to process.public void setAuthUserPasswd(String authentication, String url, Authorization authorization)
authentication
- the username and password of authorizationurl
- the baseurl of authorizationauthorization
- the object of authorizationpublic static boolean isValidCookie(String str)
str
- the cookie to checkCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.