| Constructor and Description |
|---|
Client.RestService(HttpExecuteInterceptor authentication)
Constructs this object with a HTTP execute interceptor for
authentication.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCurrentUser()
Clears the cached current Bitbucket user.
|
User |
getCurrentUser()
Returns the current user.
|
protected URI |
getEndpoint(String path)
Returns the URI of an endpoint path.
|
protected User |
getUser(HttpResponse response) |
User |
getUser(String name)
Returns the Bitbucket user identified by a name.
|
boolean |
isAuthenticated()
Indicates whether this object is authenticated or not.
|
public Client.RestService(HttpExecuteInterceptor authentication)
authentication - HTTP execute interceptorprotected URI getEndpoint(String path)
path - endpoint pathpublic void clearCurrentUser()
protected User getUser(HttpResponse response) throws IOException
IOExceptionpublic boolean isAuthenticated()
ServiceisAuthenticated in class Servicetrue if this object is authenticated, or
false otherwisepublic User getCurrentUser() throws IOException
ServicegetCurrentUser in class Servicenull if this object is not
authenticatedIOException - if an I/O error has occurredpublic User getUser(String name) throws IOException
ServicegetUser in class Servicename - name of a Bitbucket userIOException - if an I/O error has occurredCopyright © 2015 Nishimura Software Studio. All rights reserved.