com.ftpix.sparknnotation.annotations.SparkPost Maven / Gradle / Ivy
package com.ftpix.sparknnotation.annotations;
import com.ftpix.sparknnotation.defaultvalue.DefaultTemplateEngine;
import com.ftpix.sparknnotation.defaultvalue.DefaultTransformer;
import spark.ResponseTransformer;
import spark.TemplateEngine;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SparkPost {
String value() default "";
Class extends ResponseTransformer> transformer() default DefaultTransformer.class;
Class extends TemplateEngine> templateEngine() default DefaultTemplateEngine.class;
String accept() default "*/*";
}