Class SpringHttpStatusLambda

  • All Implemented Interfaces:
    com.samskivert.mustache.Mustache.Lambda

    public class SpringHttpStatusLambda
    extends Object
    implements com.samskivert.mustache.Mustache.Lambda
    Returns the Spring org.springframework.http.HttpStatus enumeration 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 Detail

      • SpringHttpStatusLambda

        public SpringHttpStatusLambda()
    • Method Detail

      • execute

        public void execute​(com.samskivert.mustache.Template.Fragment fragment,
                            Writer writer)
                     throws IOException
        Specified by:
        execute in interface com.samskivert.mustache.Mustache.Lambda
        Throws:
        IOException