aboutsummaryrefslogtreecommitdiffstats
path: root/jaxrs_utils/src/main/java/com/yahoo/vespa/jaxrs/annotation/PATCH.java
blob: 304e0f0ea837e158c238e41054b9942f2b7817a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.jaxrs.annotation;

import javax.ws.rs.HttpMethod;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Workaround for missing HTTP PATCH request support in JAX-RS 2.
 * See http://brianoneill.blogspot.in/2011/11/patch-methods-on-jax-rs.html
 *
 * @author bakksjo
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@HttpMethod("PATCH")
public @interface PATCH {
}