Package wappsto.api.rest.session
Class RestUser.Builder
- java.lang.Object
-
- wappsto.api.rest.session.RestUser.Builder
-
- Enclosing class:
- RestUser
public static class RestUser.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestUsercreate()Register the user and instantiate the new sessionRestUser.BuilderwithCredentials(Credentials credentials)
-
-
-
Constructor Detail
-
Builder
public Builder(Admin admin, java.lang.String serviceUrl)
Builder class used to register new users and log them in- Parameters:
admin- Admin sessionserviceUrl- API URL
-
-
Method Detail
-
withCredentials
public RestUser.Builder withCredentials(Credentials credentials)
- Parameters:
credentials-- Returns:
- this
-
create
public RestUser create() throws java.lang.Exception
Register the user and instantiate the new session- Returns:
- this
- Throws:
java.lang.Exception
-
-