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 TypeMethodDescriptionvoidwrite(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:
IOExceptionInterruptedException
-
-
Method Details
-
write
Description copied from class:HttpResponseWrites a response to the OutputStream.- Overrides:
writein 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.
-