Interface RequestDeserializationStep1Builder
-
- All Known Implementing Classes:
UseCaseInvocationBuilder
public interface RequestDeserializationStep1Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResponseSerializationStep1BuilderdeserializeRequestsToUseCaseParametersPerDefault(Demapifier<Object> mapper)Configures the defaultDemapifierthat will be used to deserialize a to a use case parameter if noDemapifierconfigured can be applied.<T> RequestDeserializationStep2Builder<T>deserializeRequestsToUseCaseParametersThat(BiPredicate<Class<?>,Object> filter)Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapto a use case parameter if the object matches the providedfilter.default <T> RequestDeserializationStep2Builder<T>deserializingRequestsToUseCaseParametersOfType(Class<T> type)Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapto a case parameter if the use case parameter is of the specified type.default ResponseSerializationStep1BuilderthrowAnExceptionByDefaultIfNoUseCaseRequestDeserializationCanBeApplied()Configures to throw an exception if noDemapifierconfigured matches the request.
-
-
-
Method Detail
-
deserializingRequestsToUseCaseParametersOfType
default <T> RequestDeserializationStep2Builder<T> deserializingRequestsToUseCaseParametersOfType(Class<T> type)
Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapto a case parameter if the use case parameter is of the specified type.- Type Parameters:
T- the type of the use case parameter- Parameters:
type- the class of use case parameters that will be deserialized by theDemapifier- Returns:
- the next step in the fluent builder
-
deserializeRequestsToUseCaseParametersThat
<T> RequestDeserializationStep2Builder<T> deserializeRequestsToUseCaseParametersThat(BiPredicate<Class<?>,Object> filter)
Enters a fluent builder that configures aDemapifierthat will be used to deserialize aMapto a use case parameter if the object matches the providedfilter.- Type Parameters:
T- the type of the use case response- Parameters:
filter- aBiPredicatethat returns true if theDemapifiershould be used on the respective http request- Returns:
- the next step in the fluent builder
-
throwAnExceptionByDefaultIfNoUseCaseRequestDeserializationCanBeApplied
default ResponseSerializationStep1Builder throwAnExceptionByDefaultIfNoUseCaseRequestDeserializationCanBeApplied()
Configures to throw an exception if noDemapifierconfigured matches the request.- Returns:
- the next step in the fluent builder
-
deserializeRequestsToUseCaseParametersPerDefault
ResponseSerializationStep1Builder deserializeRequestsToUseCaseParametersPerDefault(Demapifier<Object> mapper)
Configures the defaultDemapifierthat will be used to deserialize a to a use case parameter if noDemapifierconfigured can be applied.- Parameters:
mapper- aDemapifier- Returns:
- the next step in the fluent builder
-
-