public interface HttpAuthenticator
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(java.net.URL reqUrl,
org.apache.commons.httpclient.HttpClient client)
Authenticate the client http state so that the colony requests can be made.
|
java.lang.String |
getUsername()
Gets the user login name used when instantiating the authenticator
|
boolean |
needsReAuthentication(int resultCode,
org.apache.commons.httpclient.HttpMethod method)
Return true if the result from the get method indicates re-authentication is needed
|
boolean authenticate(java.net.URL reqUrl, org.apache.commons.httpclient.HttpClient client) throws HttpClientException
reqUrl
- URL requested for colonyclient
- HttpClient instanceHttpClientException
- on errorjava.lang.String getUsername()
boolean needsReAuthentication(int resultCode, org.apache.commons.httpclient.HttpMethod method)
resultCode
- result codemethod
- request