From 509e94618b88452961e382223e52248ff8a0a3c6 Mon Sep 17 00:00:00 2001 From: Cleverson Sacramento Date: Wed, 29 Apr 2015 15:15:26 -0300 Subject: [PATCH] FWK-216: Criação do método @PATCH --- impl/extension/rest/src/main/java/br/gov/frameworkdemoiselle/util/PATCH.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+), 0 deletions(-) create mode 100644 impl/extension/rest/src/main/java/br/gov/frameworkdemoiselle/util/PATCH.java diff --git a/impl/extension/rest/src/main/java/br/gov/frameworkdemoiselle/util/PATCH.java b/impl/extension/rest/src/main/java/br/gov/frameworkdemoiselle/util/PATCH.java new file mode 100644 index 0000000..0750d1e --- /dev/null +++ b/impl/extension/rest/src/main/java/br/gov/frameworkdemoiselle/util/PATCH.java @@ -0,0 +1,38 @@ +/* + * The contents of this file are subject to the terms + * of the Common Development and Distribution License + * (the "License"). You may not use this file except + * in compliance with the License. + * + * You can obtain a copy of the license at + * http://www.opensource.org/licenses/cddl1.php + * See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * PUT.java + * + * Created on October 24, 2007, 5:12 PM + * + */ + +package br.gov.frameworkdemoiselle.util; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import javax.ws.rs.HttpMethod; + +/** + * Indicates that the annotated method responds to HTTP PUT requests + * + * @see HttpMethod + */ +@Target({ ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +@HttpMethod("PATCH") +public @interface PATCH { +} -- libgit2 0.21.2