Class SpringHttpStatusLambda
- java.lang.Object
-
- org.openapitools.codegen.templating.mustache.SpringHttpStatusLambda
-
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
public class SpringHttpStatusLambda extends Object implements com.samskivert.mustache.Mustache.Lambda
Returns the Springorg.springframework.http.HttpStatusenumeration for the given status text. It throws an IllegalArgumentException if the status text is handled by the Spring framework. Register:additionalProperties.put("springHttpStatus", new SpringHttpStatusLambda());Use:{{#springHttpStatus}}{{statusCode}}{{/springHttpStatus}}
-
-
Constructor Summary
Constructors Constructor Description SpringHttpStatusLambda()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.samskivert.mustache.Template.Fragment fragment, Writer writer)
-
-
-
Method Detail
-
execute
public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException- Specified by:
executein interfacecom.samskivert.mustache.Mustache.Lambda- Throws:
IOException
-
-