public class UserAddRequest extends java.lang.Object implements RESTRequest
Constructor and Description |
---|
UserAddRequest()
Default constructor for UserAddRequest.
|
UserAddRequest(java.lang.String name)
Creates a new UserAddRequest.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the
UserAddRequest request. |
public UserAddRequest()
public UserAddRequest(java.lang.String name)
name
- The name of the user.public void validate() throws java.lang.IllegalArgumentException
UserAddRequest
request.validate
in interface RESTMessage
java.lang.IllegalArgumentException
- If the request is invalid, this exception is thrown.