public static final class StoredLightRequest.Builder extends AbstractStoredRequest.AbstractBuilder<StoredLightRequest.Builder,StoredLightRequest,eu.eidas.auth.commons.light.ILightRequest>
Constructor and Description |
---|
Builder() |
Builder(StoredLightRequest.Builder copy) |
Builder(StoredLightRequest copy) |
Modifier and Type | Method and Description |
---|---|
protected StoredLightRequest |
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 StoredLightRequest copy)
public Builder(@Nonnull StoredLightRequest.Builder copy)
protected void validate() throws IllegalArgumentException
AbstractStoredRequest.AbstractBuilder
T
.validate
in class AbstractStoredRequest.AbstractBuilder<StoredLightRequest.Builder,StoredLightRequest,eu.eidas.auth.commons.light.ILightRequest>
IllegalArgumentException
- if the builder is not in a legal state allowing to proceed with the creation
of a T
instance.@Nonnull protected StoredLightRequest newInstance()
AbstractStoredRequest.AbstractBuilder
T
of instances.
The typical implementation simply consists in writing return new MySubType(this);
newInstance
in class AbstractStoredRequest.AbstractBuilder<StoredLightRequest.Builder,StoredLightRequest,eu.eidas.auth.commons.light.ILightRequest>
T
instance based on this Builder instance.Copyright © 2020. All Rights Reserved.