Class SimpleLambdaResource
- java.lang.Object
-
- org.wicketstuff.rest.lambda.resource.SimpleLambdaResource
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.request.resource.IResource
,org.apache.wicket.util.io.IClusterable
public class SimpleLambdaResource extends Object implements org.apache.wicket.request.resource.IResource
BasicIResource
that uses aConsumer
to serve the request.- Author:
- andrea
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Consumer<org.wicketstuff.restutils.wicket.AttributesWrapper>
respondConsumer
-
Constructor Summary
Constructors Constructor Description SimpleLambdaResource(Consumer<org.wicketstuff.restutils.wicket.AttributesWrapper> respondConsumer)
Build a new resource providing theConsumer
for aAttributesWrapper
parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
respond(org.apache.wicket.request.resource.IResource.Attributes attributes)
-
-
-
Field Detail
-
respondConsumer
protected final Consumer<org.wicketstuff.restutils.wicket.AttributesWrapper> respondConsumer
-
-