public class Client extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
protected class |
Client.RestService
Bitbucket REST API service.
|
| Constructor and Description |
|---|
Client()
Constructs this object with no property values.
|
Client(String user,
String password)
Constructs this object with a user name and a password for Basic
authentication.
|
| Modifier and Type | Method and Description |
|---|---|
protected static HttpTransport |
getHttpTransport()
Returns the HTTP transport.
|
String |
getPassword()
Returns the password for Basic authentication.
|
Service |
getService()
Returns a Bitbucket REST API service.
|
Service |
getService(String user,
String password)
Returns a Bitbucket REST API service with a user name and a password for
Basic authentication.
|
String |
getUser()
Returns the user name for Basic authentication.
|
void |
setPassword(String password)
Sets the password for Basic authentication.
|
void |
setUser(String user)
Sets the user name for Basic authentication.
|
public Client()
public Client(String user, String password)
setUser(java.lang.String) and setPassword(java.lang.String).user - user namepassword - passwordprotected static HttpTransport getHttpTransport()
public String getUser()
public String getPassword()
public void setUser(String user)
user - user name to be setpublic void setPassword(String password)
password - password to be setpublic Service getService()
null, they
are used for Basic authentication.public Service getService(String user, String password)
user - user namepassword - passwordNullPointerException - if either the user name or the password is
nullCopyright © 2015 Nishimura Software Studio. All rights reserved.