1
+ /*
2
+ * Copyright 2002-2020 the original author or authors.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
1
17
package org .springframework .http ;
18
+ import org .springframework .lang .Nullable ;
19
+ import org .springframework .util .MultiValueMap ;
2
20
3
21
public class HttpEntity <T > {
22
+ public static final HttpEntity <?> EMPTY = null ;
23
+
24
+ protected HttpEntity () {
25
+ }
4
26
5
- protected HttpEntity () {
6
- }
27
+ public HttpEntity (T body ) {
28
+ }
7
29
8
- public HttpEntity (T body ) {
9
- }
30
+ public HttpEntity (MultiValueMap < String , String > headers ) {
31
+ }
10
32
11
- public HttpEntity ( org . springframework . util . MultiValueMap <java . lang . String , java . lang . String > headers ) {
12
- }
33
+ public HttpEntity ( @ Nullable T body , @ Nullable MultiValueMap <String , String > headers ) {
34
+ }
13
35
14
- public HttpEntity (T body , org .springframework .util .MultiValueMap <java .lang .String , java .lang .String > headers ) {
15
- }
36
+ public HttpHeaders getHeaders () {
37
+ return null ;
38
+ }
16
39
17
- public org . springframework . http . HttpHeaders getHeaders () {
18
- return null ;
19
- }
40
+ public T getBody () {
41
+ return null ;
42
+ }
20
43
21
- public T getBody () {
22
- return null ;
23
- }
44
+ public boolean hasBody () {
45
+ return false ;
46
+ }
24
47
25
- public boolean hasBody () {
26
- return false ;
27
- }
48
+ @ Override
49
+ public boolean equals (@ Nullable Object other ) {
50
+ return false ;
51
+ }
28
52
29
- public boolean equals (java .lang .Object other ) {
30
- return false ;
31
- }
53
+ @ Override
54
+ public int hashCode () {
55
+ return 0 ;
56
+ }
32
57
33
- public int hashCode () {
34
- return 0 ;
35
- }
58
+ @ Override
59
+ public String toString () {
60
+ return null ;
61
+ }
36
62
37
- public java .lang .String toString () {
38
- return null ;
39
- }
40
- }
63
+ }
0 commit comments