Commit 509e94618b88452961e382223e52248ff8a0a3c6
1 parent
f6c4627e
Exists in
master
FWK-216: Criação do método @PATCH
Task-Url: https://demoiselle.atlassian.net/browse/FWK-216
Showing
1 changed file
with
38 additions
and
0 deletions
Show diff stats
impl/extension/rest/src/main/java/br/gov/frameworkdemoiselle/util/PATCH.java
0 → 100644
| @@ -0,0 +1,38 @@ | @@ -0,0 +1,38 @@ | ||
| 1 | +/* | ||
| 2 | + * The contents of this file are subject to the terms | ||
| 3 | + * of the Common Development and Distribution License | ||
| 4 | + * (the "License"). You may not use this file except | ||
| 5 | + * in compliance with the License. | ||
| 6 | + * | ||
| 7 | + * You can obtain a copy of the license at | ||
| 8 | + * http://www.opensource.org/licenses/cddl1.php | ||
| 9 | + * See the License for the specific language governing | ||
| 10 | + * permissions and limitations under the License. | ||
| 11 | + */ | ||
| 12 | + | ||
| 13 | +/* | ||
| 14 | + * PUT.java | ||
| 15 | + * | ||
| 16 | + * Created on October 24, 2007, 5:12 PM | ||
| 17 | + * | ||
| 18 | + */ | ||
| 19 | + | ||
| 20 | +package br.gov.frameworkdemoiselle.util; | ||
| 21 | + | ||
| 22 | +import java.lang.annotation.ElementType; | ||
| 23 | +import java.lang.annotation.Retention; | ||
| 24 | +import java.lang.annotation.RetentionPolicy; | ||
| 25 | +import java.lang.annotation.Target; | ||
| 26 | + | ||
| 27 | +import javax.ws.rs.HttpMethod; | ||
| 28 | + | ||
| 29 | +/** | ||
| 30 | + * Indicates that the annotated method responds to HTTP PUT requests | ||
| 31 | + * | ||
| 32 | + * @see HttpMethod | ||
| 33 | + */ | ||
| 34 | +@Target({ ElementType.METHOD }) | ||
| 35 | +@Retention(RetentionPolicy.RUNTIME) | ||
| 36 | +@HttpMethod("PATCH") | ||
| 37 | +public @interface PATCH { | ||
| 38 | +} |