We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc9348 commit 9821ad9Copy full SHA for 9821ad9
src/main/java/com/contentgrid/hateoas/client/hal/HalResponse.java
@@ -2,12 +2,15 @@
2
3
import java.util.Objects;
4
import org.springframework.http.ResponseEntity;
5
-import org.springframework.lang.Nullable;
6
7
public interface HalResponse {
8
9
<T> ResponseEntity<T> toEntity(Class<T> bodyType);
10
+ default ResponseEntity<Void> toVoidEntity() {
11
+ return this.toEntity(Void.class);
12
+ }
13
+
14
default ResponseEntity<HalDocument> toHalEntity() {
15
return this.toEntity(HalDocument.class);
16
}
0 commit comments