@Inherited @Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface Consumes
*
/*
.
The Content-Type
header is used for finding the best BodyParser
.
If there isn't a BodyParser
a "415 Unsupported Media Type"
response will be generated.
class Resources { @Consume("application/json") public void method(@Body MyBody body) { } }
public abstract String[] value
Copyright © 2015. All rights reserved.