public interface TransformationRejection extends Rejection
Consider this route structure for example:
put { reject(ValidationRejection("no") } ~ get { ... }
If this structure is applied to a PUT request the list of rejections coming back contains three elements:
1. A ValidationRejection 2. A MethodRejection 3. A TransformationRejection holding a function filtering out the MethodRejection
so that in the end the RejectionHandler will only see one rejection (the ValidationRejection), because the
MethodRejection added by the get
directive is canceled by the put
directive (since the HTTP method
did indeed match eventually).
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<java.lang.Iterable<Rejection>,java.lang.Iterable<Rejection>> |
getTransform() |