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 InputStreamgetContent(RawResponse r, ProgressMonitor downloadMonitor, Path target) protected StringMethods 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:
getBodyin interfaceHttpResponse<File>- Specified by:
getBodyin classBaseResponse<File>- Returns:
- the body
-
getRawBody
- Specified by:
getRawBodyin classBaseResponse<File>
-