From f8fde5cf37e4c1bd1a75b31106a1399cabf34c19 Mon Sep 17 00:00:00 2001 From: Brad Nicholes Date: Sat, 30 Jan 2021 13:40:56 -0700 Subject: [PATCH] Fix javadoc --- .../safeguard/safeguardjava/IStreamingRequest.java | 7 ++++++- .../safeguardjava/restclient/ByteArrayEntity.java | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/oneidentity/safeguard/safeguardjava/IStreamingRequest.java b/src/main/java/com/oneidentity/safeguard/safeguardjava/IStreamingRequest.java index 6b3c1cc..f8931e8 100644 --- a/src/main/java/com/oneidentity/safeguard/safeguardjava/IStreamingRequest.java +++ b/src/main/java/com/oneidentity/safeguard/safeguardjava/IStreamingRequest.java @@ -22,6 +22,9 @@ public interface IStreamingRequest { * @param parameters Additional parameters to add to the URL. * @param additionalHeaders Additional headers to add to the request. * @return Response body as a string. + * @throws com.oneidentity.safeguard.safeguardjava.exceptions.SafeguardForJavaException + * @throws com.oneidentity.safeguard.safeguardjava.exceptions.ArgumentException + * @throws com.oneidentity.safeguard.safeguardjava.exceptions.ObjectDisposedException */ String uploadStream(Service service, String relativeUrl, byte[] stream, IProgressCallback progressCallback, Map parameters, Map additionalHeaders) throws SafeguardForJavaException, ArgumentException, ObjectDisposedException; @@ -32,10 +35,12 @@ public interface IStreamingRequest { * @param service Safeguard service to call. * @param relativeUrl Relative URL of the service to use. * @param outputFilePath Full path to the file where download will be written. - * @param body Optional request body * @param progressCallback Optionally report upload progress. * @param parameters Additional parameters to add to the URL. * @param additionalHeaders Additional headers to add to the request. + * @throws com.oneidentity.safeguard.safeguardjava.exceptions.SafeguardForJavaException + * @throws com.oneidentity.safeguard.safeguardjava.exceptions.ArgumentException + * @throws com.oneidentity.safeguard.safeguardjava.exceptions.ObjectDisposedException */ void downloadStream(Service service, String relativeUrl, String outputFilePath, IProgressCallback progressCallback, Map parameters, Map additionalHeaders) throws SafeguardForJavaException, ArgumentException, ObjectDisposedException; } diff --git a/src/main/java/com/oneidentity/safeguard/safeguardjava/restclient/ByteArrayEntity.java b/src/main/java/com/oneidentity/safeguard/safeguardjava/restclient/ByteArrayEntity.java index 8d8cbda..51d0a2c 100644 --- a/src/main/java/com/oneidentity/safeguard/safeguardjava/restclient/ByteArrayEntity.java +++ b/src/main/java/com/oneidentity/safeguard/safeguardjava/restclient/ByteArrayEntity.java @@ -24,6 +24,7 @@ public void writeTo(OutputStream outstream) throws IOException { /** * Progress: 0-100 + * @return */ public int getProgress() { if (outstream == null) {