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

com.github.dadiyang.httpinvoker.annotation.Param Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
package com.github.dadiyang.httpinvoker.annotation;

import java.lang.annotation.*;

/**
 * The {@link #value} stand for the key of request param and the annotated parameter represents the according value
 * 

* value and isBody should not both be empty/false, otherwise the param will be ignored * * @author huangxuyang * date 2018/10/31 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.PARAMETER) @Documented public @interface Param { /** * value and isBody should not both be empty/false * * @return key of request param */ String value() default ""; /** * mark that the argument is the request body *

* if the argument is an non-primary object, all the field-value will be a part of request params. * * @return if the argument is the request body */ boolean isBody() default false; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy