com.ephox.editlive.custom
Interface HTTPRequestCallback


public interface HTTPRequestCallback

This class is used as a callback by EditLive! so that developers can dynamically change HTTP request headers when uploading multimedia content.

See Also:
ELJBean.setImageUploadHTTPRequestCallback(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.
 void setResponse(HTTPHeaders headers, String body)
          Receives the response (even if the upload failed)
 

Method Detail

getRequestHeaders

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

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

setResponse

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-2012 Ephox Pty Ltd. All rights reserved.