com.lmax.api
Interface UrlCallback


public interface UrlCallback

Called back when a request for open url succeeds or fails.


Method Summary
 void onFailure(FailureResponse failureResponse)
          Called when failure occurs.
 void onSuccess(java.net.URL url, java.io.InputStream inputStream)
          Return the url and InputStream, when successful.
 

Method Detail

onSuccess

void onSuccess(java.net.URL url,
               java.io.InputStream inputStream)
Return the url and InputStream, when successful.

Parameters:
url - The url opened.
inputStream - The InputStream of the opened url.

onFailure

void onFailure(FailureResponse failureResponse)
Called when failure occurs.

Parameters:
failureResponse - Contains information about the failure.