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 DLPayloadEntitycreate(HttpResponse response)HttpResponsegetHttpResponse()The HttpResponseInputStreamgetInputStream()The raw inputstreamvoidwriteToFile(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:DLPayloadThe HttpResponse- Specified by:
getHttpResponsein interfaceDLPayload- Returns:
- the HttpResponse
-
getInputStream
public InputStream getInputStream()
Description copied from interface:DLPayloadThe raw inputstream- Specified by:
getInputStreamin interfaceDLPayload- Returns:
- the inputstream
-
writeToFile
public void writeToFile(File file) throws IOException
Description copied from interface:DLPayloadWrites the current stream to the specifiedfile- Specified by:
writeToFilein interfaceDLPayload- Parameters:
file- the file to write to- Throws:
IOException
-
-