Package net.targetr.rc.client
Class ClientFileProxyResponse
java.lang.Object
net.targetr.wtm3.net.http.HttpResponse
net.targetr.rc.client.ClientFileProxyResponse
Builds a binary response by requesting chunks from another client.
- Author:
- Dr Michael Gardiner
-
Field Summary
Fields inherited from class net.targetr.wtm3.net.http.HttpResponse
code, headers, info, version, writeErrorHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(HttpRequest request, OutputStream out) Writes a response to the OutputStream.Methods inherited from class net.targetr.wtm3.net.http.HttpResponse
getBodyInputStream, getContentLength, parseResponse, toString
-
Constructor Details
-
ClientFileProxyResponse
public ClientFileProxyResponse(ClientFileProxy clientFileProxy) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
-
Method Details
-
write
Description copied from class:HttpResponse
Writes a response to the OutputStream.- Overrides:
write
in classHttpResponse
- Parameters:
request
- Request associated with response. Used for logging purposes.out
- The OutputStream to write the response.- Throws:
Exception
- If an error occurs while writing the response.
-