|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.facebooktestjavaapi.testuser.impl.HttpClientFacebookTestUserStore
public class HttpClientFacebookTestUserStore
Implementation of FacebookTestUserStore that relies on apache HttpClient for communication with Facebook.
| Constructor Summary | |
|---|---|
HttpClientFacebookTestUserStore(String applicationId,
String applicationSecret)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected List<org.apache.http.NameValuePair> |
buildList(String... queryParams)
|
FacebookTestUserAccount |
createTestUser(boolean appInstalled,
String permissions)
Creates a new Facebook test user for a Facebook application. |
protected String |
delete(String resource,
List<org.apache.http.NameValuePair> queryParams,
Object... pathParams)
|
protected String |
delete(String resource,
Object... pathParams)
|
void |
deleteAllTestUsers()
Delete all test users registered for a Facebook application. |
protected String |
get(String resource)
|
protected String |
get(String resource,
List<org.apache.http.NameValuePair> queryParams,
Object... pathParams)
|
protected String |
get(String resource,
Object... pathParams)
|
List<FacebookTestUserAccount> |
getAllTestUsers()
Queries Facebook about all registered test users for a Facebook application. |
boolean |
isInitialized()
|
protected String |
post(String resource,
List<org.apache.http.NameValuePair> queryParams,
List<org.apache.http.NameValuePair> formParams,
Object... pathParams)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientFacebookTestUserStore(String applicationId,
String applicationSecret)
applicationId - The Facebook application ID on which test users should be registered.applicationSecret - The application secret.| Method Detail |
|---|
public FacebookTestUserAccount createTestUser(boolean appInstalled,
String permissions)
FacebookTestUserStore
createTestUser in interface FacebookTestUserStoreappInstalled - True if the account should directly accept the application requesting the specified permissions,
false to use the FacebookTestUserAccount.loginUrl()}.permissions - Comma-separated list of permissions for the Facebook application. See
Permissions
documentation.
public List<FacebookTestUserAccount> getAllTestUsers()
FacebookTestUserStore
getAllTestUsers in interface FacebookTestUserStorepublic void deleteAllTestUsers()
FacebookTestUserStore
deleteAllTestUsers in interface FacebookTestUserStorepublic boolean isInitialized()
protected String get(String resource)
throws URISyntaxException
URISyntaxException
protected String get(String resource,
Object... pathParams)
protected String get(String resource,
List<org.apache.http.NameValuePair> queryParams,
Object... pathParams)
protected String post(String resource,
List<org.apache.http.NameValuePair> queryParams,
List<org.apache.http.NameValuePair> formParams,
Object... pathParams)
protected String delete(String resource,
Object... pathParams)
protected String delete(String resource,
List<org.apache.http.NameValuePair> queryParams,
Object... pathParams)
protected List<org.apache.http.NameValuePair> buildList(String... queryParams)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||