Class WebPayloadParameterResolver

java.lang.Object
io.fluxcapacitor.javaclient.web.WebPayloadParameterResolver
All Implemented Interfaces:
ParameterResolver<HasMessage>

public class WebPayloadParameterResolver extends Object implements ParameterResolver<HasMessage>
Resolves a method parameter from the payload of a WebRequest.

This resolver is only applied to methods annotated with HandleWeb or any of its meta-annotations (e.g. HandlePost). It converts the deserialized payload to the method parameter's declared type.

Optionally, the resolver can enforce validation and authorization:

  • If validatePayload is true, the resolved payload is validated using assertValid().
  • If authoriseUser is true, the current User must be authorized to execute the payload’s type via assertAuthorized().
See Also: