Package org.openstack4j.openstack.common
Class DLPayloadEntity
- java.lang.Object
-
- org.openstack4j.openstack.common.DLPayloadEntity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DLPayloadEntity
create(HttpResponse response)
HttpResponse
getHttpResponse()
The HttpResponseInputStream
getInputStream()
The raw inputstreamvoid
writeToFile(File file)
Writes the current stream to the specifiedfile
-
-
-
Method Detail
-
create
public static DLPayloadEntity create(HttpResponse response)
-
getHttpResponse
public HttpResponse getHttpResponse()
Description copied from interface:DLPayload
The HttpResponse- Specified by:
getHttpResponse
in interfaceDLPayload
- Returns:
- the HttpResponse
-
getInputStream
public InputStream getInputStream()
Description copied from interface:DLPayload
The raw inputstream- Specified by:
getInputStream
in interfaceDLPayload
- Returns:
- the inputstream
-
writeToFile
public void writeToFile(File file) throws IOException
Description copied from interface:DLPayload
Writes the current stream to the specifiedfile
- Specified by:
writeToFile
in interfaceDLPayload
- Parameters:
file
- the file to write to- Throws:
IOException
-
-