Package kong.unirest.core
Class FileResponse
- All Implemented Interfaces:
HttpResponse<File>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileResponse
(RawResponse r, String path, ProgressMonitor downloadMonitor, CopyOption... copyOptions) -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
private InputStream
getContent
(RawResponse r, ProgressMonitor downloadMonitor, Path target) protected String
Methods inherited from class kong.unirest.core.BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
Field Details
-
body
-
-
Constructor Details
-
FileResponse
public FileResponse(RawResponse r, String path, ProgressMonitor downloadMonitor, CopyOption... copyOptions)
-
-
Method Details
-
getContent
-
getBody
- Specified by:
getBody
in interfaceHttpResponse<File>
- Specified by:
getBody
in classBaseResponse<File>
- Returns:
- the body
-
getRawBody
- Specified by:
getRawBody
in classBaseResponse<File>
-