Skip to content

Commit 8e08d84

Browse files
committed
Added javadoc explaining what the methods return
1 parent fb7cc8c commit 8e08d84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/graphql/servlet/GraphQLContext.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public Optional<HandshakeRequest> getHandshakeRequest() {
7878
return Optional.ofNullable(handshakeRequest);
7979
}
8080

81+
/**
82+
* @return list of all parts representing files
83+
*/
8184
public List<Part> getFileParts() {
8285
return getParts().values()
8386
.stream()
@@ -97,6 +100,9 @@ public Optional<Map<String, List<Part>>> getFiles() {
97100
return Optional.ofNullable(parts);
98101
}
99102

103+
/**
104+
* @return map representing all form fields
105+
*/
100106
public Map<String, List<Part>> getParts() {
101107
return parts != null ? parts : new HashMap<>();
102108
}

0 commit comments

Comments
 (0)