Interface RequestDeserializationStep1Builder

    • Method Detail

      • deserializingRequestsToUseCaseParametersOfType

        default <T> RequestDeserializationStep2Builder<T> deserializingRequestsToUseCaseParametersOfType​(Class<T> type)
        Enters a fluent builder that configures a Demapifier that will be used to deserialize a Map to 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 the Demapifier
        Returns:
        the next step in the fluent builder
      • deserializeRequestsToUseCaseParametersThat

        <T> RequestDeserializationStep2Builder<T> deserializeRequestsToUseCaseParametersThat​(BiPredicate<Class<?>,​Object> filter)
        Enters a fluent builder that configures a Demapifier that will be used to deserialize a Map to a use case parameter if the object matches the provided filter.
        Type Parameters:
        T - the type of the use case response
        Parameters:
        filter - a BiPredicate that returns true if the Demapifier should 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 no Demapifier configured matches the request.
        Returns:
        the next step in the fluent builder