rocks.bastion.core.view.DecodingHints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bastion Show documentation
Show all versions of bastion Show documentation
A Java library for testing HTTP API endpoints.
The newest version!
package rocks.bastion.core.view;
import java.util.Optional;
/**
* Provides hints to the {@link ResponseDecoder} about how to interpret the given HTTP response. This includes the type of model
* that was requested by the user, if any, so that a {@link ResponseDecoder} can decode the response into a specific model
* as requested by the user.
*/
public final class DecodingHints {
private final Class> modelType;
public DecodingHints(Class> modelType) {
this.modelType = modelType;
}
public Optional> getModelType() {
return Optional.ofNullable(modelType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy