public class FormLogin extends Object
Constructor and Description |
---|
FormLogin(String loginFormURL,
String loginUserField,
String loginPasswordField,
String username,
char[] password)
Creates new form login credentials
|
Modifier and Type | Method and Description |
---|---|
void |
clearCookies()
Clears cookies associated with login, may be useful if you need to force
a fresh login attempt for any reason.
|
org.apache.http.client.CookieStore |
getCookies()
Gets cookies associated with this login
|
org.apache.http.HttpEntity |
getLoginEntity()
Gets the HTTP Entity for the Login request
|
String |
getLoginFormURL()
Gets the login form URL
|
boolean |
hasCookies()
Gets whether any cookies are associated with this login
|
void |
setCookies(org.apache.http.client.CookieStore cookies)
Sets cookies associated with this login
|
public FormLogin(String loginFormURL, String loginUserField, String loginPasswordField, String username, char[] password)
loginFormURL
- Login Form URLloginUserField
- Login Form User field nameloginPasswordField
- Login Form Password field nameusername
- User namepassword
- Passwordpublic String getLoginFormURL()
public org.apache.http.HttpEntity getLoginEntity() throws UnsupportedEncodingException
UnsupportedEncodingException
- Thrown if the platform does not support UTF-8public boolean hasCookies()
public org.apache.http.client.CookieStore getCookies()
public void setCookies(org.apache.http.client.CookieStore cookies)
cookies
- public void clearCookies()
Licenced under the Apache License, Version 2.0