|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.jinahya.twitter.xauth.Client
public abstract class Client
| Constructor Summary | |
|---|---|
Client(String consumerKey,
String consumerSecret)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected String |
authorize(String method,
String url,
Vector<String> parameters,
String token,
String tokenSecret)
|
InputStream |
GET(String url,
Hashtable<String,String> parameters,
boolean authorize)
Requests HTTP GET resource. |
String |
getScreenName()
Returns current user's screen name. |
String |
getUserId()
Returns current user's id. |
boolean |
isSignedIn()
Checks whether currently signed in or not. |
InputStream |
POST(String url,
Hashtable<String,String> parameters,
boolean authorize)
Requests HTTP POST resource. |
InputStream |
request(String method,
String url,
Hashtable<String,String> parameters)
|
InputStream |
request(String method,
String url,
Hashtable<String,String> parameters,
boolean authorize)
|
InputStream |
request(String method,
String url,
Vector<String> parameters,
boolean authorize)
|
protected String |
sign(String method,
String url,
Vector<String> parameters,
String tokenSecret)
|
void |
signIn(String username,
String password)
Signs in with given user credentials. |
void |
signOut()
Signs out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.googlecode.jinahya.twitter.xauth.Authenticator |
|---|
authenticate |
| Methods inherited from interface com.googlecode.jinahya.twitter.xauth.Requester |
|---|
request |
| Constructor Detail |
|---|
public Client(String consumerKey,
String consumerSecret)
consumerKey - consumer keyconsumerSecret - consumer secret| Method Detail |
|---|
public void signIn(String username,
String password)
throws Exception
username - usernamepassword - password
Exception - if an error occurs.
public InputStream GET(String url,
Hashtable<String,String> parameters,
boolean authorize)
throws Exception
url - normalized request URLparameters - request parametersauthorize - authorize flag
Exception - if an I/O error occurs.
public InputStream POST(String url,
Hashtable<String,String> parameters,
boolean authorize)
throws Exception
url - normalized request URLparameters - request parametersauthorize - authorize flag
Exception - if any error occurs.
public InputStream request(String method,
String url,
Hashtable<String,String> parameters)
throws Exception
method - url - parameters -
Exception
public InputStream request(String method,
String url,
Hashtable<String,String> parameters,
boolean authorize)
throws Exception
method - request methodurl - normalized resource urlparameters - authorize - flag for authentication requirement
Exception - if an error occurs.
public InputStream request(String method,
String url,
Vector<String> parameters,
boolean authorize)
throws Exception
method - request methodurl - normalized resource URLparameters - parametersauthorize - flag for authentication requirement
Exception - if an error occurspublic void signOut()
public String getUserId()
public String getScreenName()
public boolean isSignedIn()
protected String authorize(String method,
String url,
Vector<String> parameters,
String token,
String tokenSecret)
throws Exception
method - request methodurl - normalized resource urlparameters - parameterstoken - access tokentokenSecret - token secret
Exception - if an error occurs
protected String sign(String method,
String url,
Vector<String> parameters,
String tokenSecret)
throws Exception
method - HTTP methodurl - normalized request URLparameters - OAuth parameterstokenSecret - token secret
Exception - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||