Skip to content

Commit 4be7e94

Browse files
Add more spring stubs
1 parent c1555b3 commit 4be7e94

File tree

4 files changed

+852
-89
lines changed

4 files changed

+852
-89
lines changed
Lines changed: 50 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,63 @@
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+
117
package org.springframework.http;
18+
import org.springframework.lang.Nullable;
19+
import org.springframework.util.MultiValueMap;
220

321
public class HttpEntity<T> {
22+
public static final HttpEntity<?> EMPTY = null;
23+
24+
protected HttpEntity() {
25+
}
426

5-
protected HttpEntity() {
6-
}
27+
public HttpEntity(T body) {
28+
}
729

8-
public HttpEntity(T body) {
9-
}
30+
public HttpEntity(MultiValueMap<String, String> headers) {
31+
}
1032

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+
}
1335

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+
}
1639

17-
public org.springframework.http.HttpHeaders getHeaders() {
18-
return null;
19-
}
40+
public T getBody() {
41+
return null;
42+
}
2043

21-
public T getBody() {
22-
return null;
23-
}
44+
public boolean hasBody() {
45+
return false;
46+
}
2447

25-
public boolean hasBody() {
26-
return false;
27-
}
48+
@Override
49+
public boolean equals(@Nullable Object other) {
50+
return false;
51+
}
2852

29-
public boolean equals(java.lang.Object other) {
30-
return false;
31-
}
53+
@Override
54+
public int hashCode() {
55+
return 0;
56+
}
3257

33-
public int hashCode() {
34-
return 0;
35-
}
58+
@Override
59+
public String toString() {
60+
return null;
61+
}
3662

37-
public java.lang.String toString() {
38-
return null;
39-
}
40-
}
63+
}

0 commit comments

Comments
 (0)