File tree Expand file tree Collapse file tree 11 files changed +11
-7
lines changed
main/java/org/trellisldp/http
test/java/org/trellisldp/http Expand file tree Collapse file tree 11 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 20
20
import static java .util .Collections .unmodifiableList ;
21
21
import static javax .ws .rs .HttpMethod .DELETE ;
22
22
import static javax .ws .rs .HttpMethod .GET ;
23
+ import static javax .ws .rs .HttpMethod .PATCH ;
23
24
import static javax .ws .rs .HttpMethod .POST ;
24
25
import static javax .ws .rs .HttpMethod .PUT ;
25
26
import static javax .ws .rs .Priorities .AUTHORIZATION ;
Original file line number Diff line number Diff line change 39
39
import javax .ws .rs .NotAcceptableException ;
40
40
import javax .ws .rs .NotFoundException ;
41
41
import javax .ws .rs .OPTIONS ;
42
+ import javax .ws .rs .PATCH ;
42
43
import javax .ws .rs .POST ;
43
44
import javax .ws .rs .PUT ;
44
45
import javax .ws .rs .Path ;
66
67
import org .trellisldp .api .Metadata ;
67
68
import org .trellisldp .api .RDFFactory ;
68
69
import org .trellisldp .api .Resource ;
69
- import org .trellisldp .http .core .PATCH ;
70
70
import org .trellisldp .http .core .ServiceBundler ;
71
71
import org .trellisldp .http .core .TrellisExtensions ;
72
72
import org .trellisldp .http .core .TrellisRequest ;
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ public final class HttpConstants {
107
107
public static final String ORIGINAL = "original" ;
108
108
109
109
/** The name of the HTTP verb used to update resources. */
110
+ @ Deprecated
110
111
public static final String PATCH = "PATCH" ;
111
112
112
113
/** The name of the HTTP response code for a Precondition Required error. */
Original file line number Diff line number Diff line change 27
27
/**
28
28
* PATCH HTTP method.
29
29
*
30
+ * @deprecated Please use {@link javax.ws.rs.PATCH} instead.
30
31
* @author acoburn
31
32
*/
32
33
@ Target (value = METHOD )
33
34
@ Retention (value = RUNTIME )
34
35
@ HttpMethod (value = "PATCH" )
35
36
@ Documented
37
+ @ Deprecated
36
38
public @interface PATCH {
37
39
}
Original file line number Diff line number Diff line change 27
27
import static javax .ws .rs .HttpMethod .GET ;
28
28
import static javax .ws .rs .HttpMethod .HEAD ;
29
29
import static javax .ws .rs .HttpMethod .OPTIONS ;
30
+ import static javax .ws .rs .HttpMethod .PATCH ;
30
31
import static javax .ws .rs .HttpMethod .POST ;
31
32
import static javax .ws .rs .HttpMethod .PUT ;
32
33
import static javax .ws .rs .core .HttpHeaders .ACCEPT ;
46
47
import static org .trellisldp .http .core .HttpConstants .ACCEPT_RANGES ;
47
48
import static org .trellisldp .http .core .HttpConstants .DESCRIPTION ;
48
49
import static org .trellisldp .http .core .HttpConstants .MEMENTO_DATETIME ;
49
- import static org .trellisldp .http .core .HttpConstants .PATCH ;
50
50
import static org .trellisldp .http .core .HttpConstants .PREFER ;
51
51
import static org .trellisldp .http .core .HttpConstants .PREFERENCE_APPLIED ;
52
52
import static org .trellisldp .http .core .HttpConstants .RANGE ;
Original file line number Diff line number Diff line change 23
23
import static javax .ws .rs .HttpMethod .GET ;
24
24
import static javax .ws .rs .HttpMethod .HEAD ;
25
25
import static javax .ws .rs .HttpMethod .OPTIONS ;
26
+ import static javax .ws .rs .HttpMethod .PATCH ;
26
27
import static javax .ws .rs .HttpMethod .POST ;
27
28
import static javax .ws .rs .HttpMethod .PUT ;
28
29
import static javax .ws .rs .core .HttpHeaders .ALLOW ;
32
33
import static org .slf4j .LoggerFactory .getLogger ;
33
34
import static org .trellisldp .http .core .HttpConstants .ACCEPT_PATCH ;
34
35
import static org .trellisldp .http .core .HttpConstants .ACCEPT_POST ;
35
- import static org .trellisldp .http .core .HttpConstants .PATCH ;
36
36
import static org .trellisldp .http .core .RdfMediaType .APPLICATION_SPARQL_UPDATE ;
37
37
38
38
import java .util .List ;
Original file line number Diff line number Diff line change 21
21
import static javax .ws .rs .HttpMethod .GET ;
22
22
import static javax .ws .rs .HttpMethod .HEAD ;
23
23
import static javax .ws .rs .HttpMethod .OPTIONS ;
24
+ import static javax .ws .rs .HttpMethod .PATCH ;
24
25
import static javax .ws .rs .HttpMethod .PUT ;
25
26
import static javax .ws .rs .core .MediaType .APPLICATION_OCTET_STREAM ;
26
27
import static javax .ws .rs .core .Response .Status .BAD_REQUEST ;
33
34
import static org .trellisldp .api .Resource .SpecialResources .DELETED_RESOURCE ;
34
35
import static org .trellisldp .api .Resource .SpecialResources .MISSING_RESOURCE ;
35
36
import static org .trellisldp .api .TrellisUtils .TRELLIS_DATA_PREFIX ;
36
- import static org .trellisldp .http .core .HttpConstants .PATCH ;
37
37
import static org .trellisldp .http .impl .HttpUtils .closeDataset ;
38
38
import static org .trellisldp .http .impl .HttpUtils .ldpResourceTypes ;
39
39
import static org .trellisldp .vocabulary .Trellis .PreferUserManaged ;
Original file line number Diff line number Diff line change 54
54
import static org .trellisldp .http .core .HttpConstants .CONFIG_HTTP_PUT_UNCONTAINED ;
55
55
import static org .trellisldp .http .core .HttpConstants .EXT ;
56
56
import static org .trellisldp .http .core .HttpConstants .MEMENTO_DATETIME ;
57
- import static org .trellisldp .http .core .HttpConstants .PATCH ;
58
57
import static org .trellisldp .http .core .HttpConstants .PREFER ;
59
58
import static org .trellisldp .http .core .HttpConstants .RANGE ;
60
59
import static org .trellisldp .http .core .HttpConstants .SLUG ;
Original file line number Diff line number Diff line change 31
31
import static javax .ws .rs .HttpMethod .GET ;
32
32
import static javax .ws .rs .HttpMethod .HEAD ;
33
33
import static javax .ws .rs .HttpMethod .OPTIONS ;
34
+ import static javax .ws .rs .HttpMethod .PATCH ;
34
35
import static javax .ws .rs .HttpMethod .POST ;
35
36
import static javax .ws .rs .HttpMethod .PUT ;
36
37
import static javax .ws .rs .core .HttpHeaders .ALLOW ;
47
48
import static org .trellisldp .api .TrellisUtils .TRELLIS_BNODE_PREFIX ;
48
49
import static org .trellisldp .api .TrellisUtils .TRELLIS_DATA_PREFIX ;
49
50
import static org .trellisldp .http .core .HttpConstants .ACL ;
50
- import static org .trellisldp .http .core .HttpConstants .PATCH ;
51
51
import static org .trellisldp .http .core .RdfMediaType .TEXT_TURTLE_TYPE ;
52
52
53
53
import java .io .ByteArrayInputStream ;
Original file line number Diff line number Diff line change 30
30
import static javax .ws .rs .HttpMethod .GET ;
31
31
import static javax .ws .rs .HttpMethod .HEAD ;
32
32
import static javax .ws .rs .HttpMethod .OPTIONS ;
33
+ import static javax .ws .rs .HttpMethod .PATCH ;
33
34
import static javax .ws .rs .HttpMethod .POST ;
34
35
import static javax .ws .rs .HttpMethod .PUT ;
35
36
import static javax .ws .rs .core .HttpHeaders .LINK ;
56
57
import static org .trellisldp .http .core .HttpConstants .ACCEPT_RANGES ;
57
58
import static org .trellisldp .http .core .HttpConstants .DESCRIPTION ;
58
59
import static org .trellisldp .http .core .HttpConstants .MEMENTO_DATETIME ;
59
- import static org .trellisldp .http .core .HttpConstants .PATCH ;
60
60
import static org .trellisldp .http .core .HttpConstants .PREFER ;
61
61
import static org .trellisldp .http .core .HttpConstants .PREFERENCE_APPLIED ;
62
62
import static org .trellisldp .http .core .HttpConstants .RANGE ;
You can’t perform that action at this time.
0 commit comments