Class ClientFileProxy

java.lang.Object
net.targetr.rc.client.ClientFileProxy

public class ClientFileProxy extends Object
Starts a binary response by connecting to another client.
Author:
Dr Michael Gardiner
  • Constructor Details

    • ClientFileProxy

      public ClientFileProxy(HttpRequest httpReq) throws IOException
      Initializes a new proxy request from the HTTP request details.
      Parameters:
      httpReq - the incoming HTTP request
      Throws:
      IOException - if an error occurs parsing the request path or method
  • Method Details

    • getResponse

      public HttpResponse getResponse() throws Exception
      Processes the request and generates an appropriate HTTP response.
      Returns:
      the generated HTTP response
      Throws:
      Exception - if an error occurs while processing the request