Package de.qytera.qtaf.xray.builder
Interface RequestBodyBuilder<T>
- Type Parameters:
T- the body's type
- All Known Implementing Classes:
XrayJsonImportBuilder
public interface RequestBodyBuilder<T>
Interface for building HTTP request bodies described by DTOs (or other Java classes). For example, a request builder
for building authentication requests could look as follows:
public class AuthRequestBodyBuilder implements RequestBodyBuilder<CredentialsDto> {
@Override
CredentialsDto build() {
return new BasicCredentialsDto("username", "password");
}
}
-
Method Summary
-
Method Details
-
build
T build()Builds the request's body.- Returns:
- the request body
-