Package io.jstach.opt.dropwizard.example
Class ExampleResource
java.lang.Object
io.jstach.opt.dropwizard.example.ExampleResource
Dropwizard JAXRS example resource highlighting JStachio integration.
- Author:
- agentgt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.dropwizard.views.common.View
hello()
For this endpoint we create the model and call the model to view mixinJStacheViewSupport.toView()
.io.dropwizard.views.common.View
template()
For this endpoint we use generated template directly and use a mixin method that will generate the view from the model.
-
Constructor Details
-
ExampleResource
public ExampleResource()Do nothing constructor.
-
-
Method Details
-
hello
For this endpoint we create the model and call the model to view mixinJStacheViewSupport.toView()
. This approach allows us not to reference the generated template directly.- Returns:
- jstachio powered view
-
template
For this endpoint we use generated template directly and use a mixin method that will generate the view from the model.- Returns:
- jstachio powered view
-