|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.janrain4j.conf.Config
public class Config
User-configurable properties. In most cases it is not needed to create a
Config manually. To create a Config
programatically, the recommended way is to statically import
Config.Builder.* and invoke the static build method followed by the
desired instance mutators:
import static com.googlecode.janrain4j.conf.Config.Builder.*;
...
// specify API key
Config config = build().apiKey(apiKey);
// specify API key and proxy
Config config = build().apiKey(apiKey).proxy(proxyHost, proxyPort);
// overview of all configurable properties
Config config = build()
.apiKey(apiKey)
.applicationID(applicationID)
.applicationDomain(applicationDomain)
.tokenUrl(tokenUrl)
.languagePreference(languagePreference)
.proxyHost(proxyHost)
.proxyPort(proxyHost)
.proxyUsername(proxyUsername)
.proxyPassword(proxyPassword)
.connectTimeout(connectTimeout)
.readTimeout(readTimeout)
.setStatusProviderNames(setStatusProviderNames)
.activityProviderNames(activityProviderNames);
| Nested Class Summary | |
|---|---|
static class |
Config.Builder
Contains static creation methods for Config. |
| Field Summary | |
|---|---|
static List<String> |
DEFAULT_ACTIVITY_PROVIDER_NAMES
|
static List<String> |
DEFAULT_SET_STATUS_PROVIDER_NAMES
|
| Method Summary | |
|---|---|
Config |
activityProviderNames(List<String> providerNames)
Sets the provider names which support the activity API call. |
Config |
apiKey(String apiKey)
Sets the Janrain API key. |
Config |
applicationDomain(String applicationDomain)
Sets the Janrain application domain. |
Config |
applicationID(String applicationID)
Sets the Janrain application ID. |
Config |
connectTimeout(int timeout)
Set the connect timeout, in milliseconds, to be used when opening the communications link to the resource. |
List<String> |
getActivityProviderNames()
Returns the provider names which support the activity API call. |
String |
getApiKey()
Returns the Janrain API key. |
String |
getApplicationDomain()
Returns the Janrain application domain. |
String |
getApplicationID()
Returns the Janrain application ID. |
int |
getConnectTimeout()
Returns the connect timeout. |
String |
getLanguagePreference()
Returns the language preference. |
String |
getProxyHost()
Returns the proxy host. |
String |
getProxyPassword()
Returns the proxy password. |
int |
getProxyPort()
Returns the proxy port. |
String |
getProxyUsername()
Returns the proxy username. |
int |
getReadTimeout()
Returns the read timeout. |
List<String> |
getSetStatusProviderNames()
Returns the provider names which support the set_status API call. |
String |
getTokenUrl()
Returns the token url. |
Config |
languagePreference(String languagePreference)
Sets the language preference. |
Config |
proxyHost(String host)
Sets the proxy host. |
Config |
proxyPassword(String password)
Sets the proxy password. |
Config |
proxyPort(int port)
Sets the proxy port. |
Config |
proxyUsername(String username)
Sets the proxy username. |
Config |
readTimeout(int timeout)
Sets the read timeout, in milliseconds, to be used when reading from the input steam. |
Config |
setStatusProviderNames(List<String> providerNames)
Sets the provider names which support the set_status API call. |
Config |
tokenUrl(String tokenUrl)
Sets the token url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static List<String> DEFAULT_SET_STATUS_PROVIDER_NAMES
public static List<String> DEFAULT_ACTIVITY_PROVIDER_NAMES
| Method Detail |
|---|
public String getApiKey()
public String getApplicationID()
public String getApplicationDomain()
public String getTokenUrl()
public String getLanguagePreference()
public String getProxyHost()
public int getProxyPort()
public String getProxyUsername()
public String getProxyPassword()
public int getConnectTimeout()
public int getReadTimeout()
public List<String> getSetStatusProviderNames()
set_status API call.
public List<String> getActivityProviderNames()
activity API call.
public Config apiKey(String apiKey)
apiKey - Your Janrain API key.
this (for chaining)public Config applicationID(String applicationID)
applicationID - The application ID.
this (for chaining)public Config applicationDomain(String applicationDomain)
applicationDomain - The application domain.
this (for chaining)public Config tokenUrl(String tokenUrl)
tokenUrl - The token url.
this (for chaining)public Config languagePreference(String languagePreference)
languagePreference - The language preference.
this (for chaining)public Config proxyHost(String host)
host - The proxy host.
this (for chaining)public Config proxyPort(int port)
port - The proxy port.
this (for chaining)public Config proxyUsername(String username)
username - The proxy username.
this (for chaining)public Config proxyPassword(String password)
password - The proxy password.
this (for chaining)public Config connectTimeout(int timeout)
0 implies that the option is disabled (i.e., timeout of infinity).
timeout - The connect timeout value in milliseconds.
this (for chaining)public Config readTimeout(int timeout)
0 implies that the option is disabled (i.e., timeout of infinity).
timeout - The read timeout value in milliseconds.
this (for chaining)public Config setStatusProviderNames(List<String> providerNames)
set_status API call.
providerNames - The provider names.
this (for chaining)public Config activityProviderNames(List<String> providerNames)
activity API call.
providerNames - The provider names.
this (for chaining)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||