com.ephox.editlive.custom
Interface HTTPRequestCallback


public interface HTTPRequestCallback


Method Summary
 HTTPHeaders getRequestHeaders(String filePath)
          Returns an array of HttpHeaders which should be added to the request being sent to the given file path.
 void setResponse(HTTPHeaders headers, String body)
          Receives the response (even if the upload failed)
 

Method Detail

getRequestHeaders

public HTTPHeaders getRequestHeaders(String filePath)
Returns an array of HttpHeaders which should be added to the request being sent to the given file path.

Parameters:
filePath - path for the file about to be uploaded.

setResponse

public void setResponse(HTTPHeaders headers,
                        String body)
Receives the response (even if the upload failed)

Parameters:
headers - a copy of the headers returned by the server
body - a copy of the body returned by the server

Copyright (c) 2005-2007 Ephox Pty Ltd. All rights reserved.