Package benchmark

Source Code of benchmark.Benchmarks

package benchmark;

import benchmark.entities.HelloWorld;
import com.kolich.curacao.annotations.Controller;
import com.kolich.curacao.annotations.methods.RequestMapping;
import com.kolich.curacao.handlers.requests.matchers.AntPathMatcher;

@Controller
public final class Benchmarks {

    @RequestMapping(value="/json", matcher=AntPathMatcher.class)
    public final HelloWorld json() {
        return new HelloWorld("Hello, World!");
    }

    @RequestMapping(value="/plaintext", matcher=AntPathMatcher.class)
    public final String plainText() {
        return "Hello, World!";
    }

}
TOP

Related Classes of benchmark.Benchmarks

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.