@Concealed
public interface RIDCHttpClient
Modifier and Type | Method and Description |
---|---|
void |
addCookie(RIDCCookie cookie)
Add cookie to the connection
|
void |
clear()
Clear the params and headers from the connection
|
List<RIDCCookie> |
getCookies()
Get the cookies from the connection
|
Object |
getDelegateObject()
Returns the underlying client object
|
RIDCHttpGetMethod |
getGetMethod(String url)
Get the method to execute for HTTP GET
|
RIDCHttpPostMethod |
getPostMethod(String url)
Get the method to execute for HTTP POST
|
void |
resetState()
Reset the state of the connection
|
void |
setAuthenticationPreemptive(boolean b)
Set authentication preemptive
|
void |
setCredentials(String scope,
Credentials idcCredentials)
Set credentials for the connection
|
void |
setProxy(String proxyHost,
int proxyPort,
String proxyUsername,
String proxyPassword,
String proxyRealm)
Set proxy for the connection
|
void |
setSocketTimeout(int socketTimeout)
Set the socket timeout
|
void addCookie(RIDCCookie cookie)
cookie
- void clear()
List<RIDCCookie> getCookies()
void resetState()
void setAuthenticationPreemptive(boolean b)
b
- void setCredentials(String scope, Credentials idcCredentials)
scope
- idcCredentials
- void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword, String proxyRealm)
proxyHost
- proxy host nameproxyPort
- proxy host portproxyUsername
- proxy user name, null if not requiredproxyPassword
- proxy user password, null if not requiredproxyRealm
- proxy realm, null if not requiredvoid setSocketTimeout(int socketTimeout)
socketTimeout
- timeout value on milli secondsRIDCHttpGetMethod getGetMethod(String url)
url
- the urlRIDCHttpPostMethod getPostMethod(String url)
url
- the urlObject getDelegateObject()