public class CreateSessionRequestValidator extends java.lang.Object implements util.validation.Validator<Error,CreateSessionRequest>
CreateSessionRequest
.
Validation is carried out using field parsers to check whether it's possible
to instantiate valid values from the provided input fields and if the validate
method returns successfully (i.e.
right value) the parsed values will be available through the various getters
provided by this class.Constructor and Description |
---|
CreateSessionRequestValidator() |
Modifier and Type | Method and Description |
---|---|
java.time.Duration |
getKeepAlive() |
java.net.URI |
getOmero() |
java.lang.String |
getPassword() |
CreateSessionRequest |
getRequest() |
java.lang.String |
getUsername() |
util.object.Either<Error,CreateSessionRequest> |
validate(CreateSessionRequest r) |
public util.object.Either<Error,CreateSessionRequest> validate(CreateSessionRequest r)
validate
in interface util.validation.Validator<Error,CreateSessionRequest>
public CreateSessionRequest getRequest()
public java.net.URI getOmero()
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.time.Duration getKeepAlive()