All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.hippoom.resthelper.annotation.Command Maven / Gradle / Ivy

Go to download

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; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy