com.github.hippoom.resthelper.annotation.Command Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-helper Show documentation
Show all versions of rest-helper Show documentation
An extension to spring-mvc to simplify restful application stuff, see https://github.com/Hippoom/rest-helper for more detail.
The newest version!
package com.github.hippoom.resthelper.annotation;
import java.lang.annotation.*;
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Command {
/**
* Whether body content is required.
* Default is {@code true}, leading to an exception thrown in case
* there is no body content. Switch this to {@code false} if you prefer
* {@code null} to be passed when the body content is {@code null}.
*
* @since 3.2
*/
boolean required() default true;
}