Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0868A18ED0 for ; Tue, 13 Oct 2015 16:09:40 +0000 (UTC) Received: (qmail 15521 invoked by uid 500); 13 Oct 2015 16:09:39 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 15462 invoked by uid 500); 13 Oct 2015 16:09:39 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 15358 invoked by uid 99); 13 Oct 2015 16:09:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2015 16:09:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9F508E0AD6; Tue, 13 Oct 2015 16:09:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sergeyb@apache.org To: commits@cxf.apache.org Date: Tue, 13 Oct 2015 16:09:42 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [4/4] cxf git commit: [CXF-6638] Making sure a chunking is possible for PATCH/etc [CXF-6638] Making sure a chunking is possible for PATCH/etc Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/349ab460 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/349ab460 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/349ab460 Branch: refs/heads/2.7.x-fixes Commit: 349ab460edc8884fc584c618a20176463f1c0303 Parents: 2460922 Author: Sergey Beryozkin Authored: Tue Oct 13 17:09:20 2015 +0100 Committer: Sergey Beryozkin Committed: Tue Oct 13 17:09:20 2015 +0100 ---------------------------------------------------------------------- .../java/org/apache/cxf/jaxrs/ext/PATCH.java | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/349ab460/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/PATCH.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/PATCH.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/PATCH.java new file mode 100644 index 0000000..b0befd8 --- /dev/null +++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/PATCH.java @@ -0,0 +1,39 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.cxf.jaxrs.ext; + +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 PATCH requests. + * + * @see HttpMethod + */ +@Target({ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +@HttpMethod("PATCH") +public @interface PATCH { + +} \ No newline at end of file