Skip to content

Commit ea903a6

Browse files
committed
Add javadoc on FileHttpMessageConverter for clarity
1 parent e495e5a commit ea903a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core-services/prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/FileHttpMessageConverter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import org.springframework.util.StreamUtils;
1717

1818
/**
19-
* A custom {@link HttpMessageConverter} that enables Spring's RestTemplate to read and write {@link
20-
* java.io.File} objects for {@code application/octet-stream} payloads.
19+
* A custom implementation {@link HttpMessageConverter} for Spring's RestTemplate to read and write
20+
* {@link java.io.File} objects in {@code application/octet-stream} payloads.
2121
*
2222
* @see org.springframework.http.converter.AbstractHttpMessageConverter
2323
*/
@@ -41,10 +41,10 @@ protected boolean supports(@Nonnull final Class clazz) {
4141
}
4242

4343
/**
44-
* Reads the {@link HttpInputMessage} body into a new temporary file and returns it.
44+
* Reads the {@link HttpInputMessage} body into a new file in system's temporary directory.
4545
*
46-
* <p>A temporary file is created in the system temp directory and the response body is streamed
47-
* directly into this file without buffering the entire content in memory.
46+
* <p>The response body is streamed directly into this file without buffering the entire content
47+
* in memory.
4848
*
4949
* <p>The caller is responsible for deleting the returned file.
5050
*

0 commit comments

Comments
 (0)