public class UserService extends Object
Modifier and Type | Field and Description |
---|---|
private Credentials |
credentials |
private Transport |
transport |
private URL |
url |
Constructor and Description |
---|
UserService(URL url,
Credentials credentials,
Transport transport)
Constructs the service.
|
private URL url
private Credentials credentials
private Transport transport
public UserService(URL url, Credentials credentials, Transport transport)
url
- of the servercredentials
- to work with the servertransport
- to know the method to reach the serverpublic void put(String id, UserInfo userInfo)
id
- identifies entityuserInfo
- the entity content to putNotFoundJsonException
- if user wasn't foundReferenceNotFoundJsonException
- if user wasn't connected to treasurerCopyright © 2015. All rights reserved.