public interface ResponseBuilder
ResponseBuilderProvider.getResponseBuilder()method and will be supplied to the user for additional configuration via a
Consumerwhich accepts a
The expectation is that the protocol will supply whatever other builder methods are necessary for allowing the user to configure their response as they desire. This would include things like allowing the user to specify the body of the response, any response status codes, metadata to include, etc.
It is important to note that the
build() method may not reset or alter the state of
the builder. It must be possible to call the
build() method multiple times in a row and
get equivalent (but different) objects. The
GenericResponseBuilder honors this rule.
Responseobject which will be used during playback. However, no harm will result from calling it elsewhere.
It is important to note that this method may not reset or alter the state of the builder. It must be possible to call this method multiple times in a row and get equivalent (but different) objects.