com.techempower.gemini.path.annotation.ConsumesString Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gemini Show documentation
Show all versions of gemini Show documentation
Gemini is a web framework created by TechEmpower.
package com.techempower.gemini.path.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.techempower.gemini.path.StringRequestBodyAdapter;
/**
* A convenience annotation that is equivalent to
* {@code @Body(StringRequestBodyAdapter.class)}.
*
* Indicates that the request body should be read into a String
* and passed as the last parameter to the handler method. The last
* parameter must be a String.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Body(StringRequestBodyAdapter.class)
public @interface ConsumesString
{
}