public static final class StoredAuthenticationRequest.Builder extends AbstractStoredRequest.AbstractBuilder<StoredAuthenticationRequest.Builder,StoredAuthenticationRequest,IAuthenticationRequest>
Constructor and Description |
---|
Builder() |
Builder(StoredAuthenticationRequest.Builder copy) |
Builder(StoredAuthenticationRequest copy) |
Modifier and Type | Method and Description |
---|---|
protected StoredAuthenticationRequest |
newInstance()
Method to be implemented by subtypes to create the right type
T of instances. |
protected void |
validate()
Validates the state of this Builder before allowing to create new instances of the built type
T . |
build, remoteIpAddress, request
public Builder()
public Builder(@Nonnull StoredAuthenticationRequest copy)
public Builder(@Nonnull StoredAuthenticationRequest.Builder copy)
protected void validate() throws IllegalArgumentException
AbstractStoredRequest.AbstractBuilder
T
.validate
in class AbstractStoredRequest.AbstractBuilder<StoredAuthenticationRequest.Builder,StoredAuthenticationRequest,IAuthenticationRequest>
IllegalArgumentException
- if the builder is not in a legal state allowing to proceed with the creation
of a T
instance.@Nonnull protected StoredAuthenticationRequest newInstance()
AbstractStoredRequest.AbstractBuilder
T
of instances.
The typical implementation simply consists in writing return new MySubType(this);
newInstance
in class AbstractStoredRequest.AbstractBuilder<StoredAuthenticationRequest.Builder,StoredAuthenticationRequest,IAuthenticationRequest>
T
instance based on this Builder instance.Copyright © 2020. All Rights Reserved.