Android Open Source - android-sdk Catchoom Response Handler






From Project

Back to project page android-sdk.

License

The source code is released under:

MIT License

If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

// (c) Catchoom Technologies S.L.
// Licensed under the MIT license.
// https://raw.github.com/catchoom/android-sdk/master/LICENSE
// All warranties and liabilities are disclaimed.
package com.catchoom.api;
//from  w ww.j a v  a 2s .  c o  m
/**
 * CatchoomResponseHanlder expose the interface used by the Catchoom requests to
 * perform callbacks once they have finished. Any class implementing this interface
 * must override its methods.
 * 
 * <code>Remember to set the handler to your {@link Catchoom} object through setResponseHandler</code>.
 * @author Catchoom
 *
 */
public interface CatchoomResponseHandler {

  /**
   * Callback triggered once a request has completed succesfully.
   * @param requestCode The code corresponding to the request type has been sent.
   * Can be checked using {@link Catchoom.Request}.
   * @param responseData The data returned by the request. Its type and content
   * can vary depending on the request performed.
   */
  public void requestCompletedResponse(int requestCode, Object responseData);
  
  /**
   * Callback triggered once a request has completed unsuccessfully.
   * Connection unavailable or server not reached are also considered as
   * unsuccessful requests.
   * @param responseError Catchoom error item containing the HTTP error code
   * and phrase and an error description. 
   */
  public void requestFailedResponse(CatchoomErrorResponseItem responseError);
  
}




Java Source Code List

com.catchoom.api.CatchoomErrorResponseItem.java
com.catchoom.api.CatchoomImageUtil.java
com.catchoom.api.CatchoomResponseHandler.java
com.catchoom.api.CatchoomSearchResponseItem.java
com.catchoom.api.Catchoom.java
org.apache.http.entity.mime.FormBodyPart.java
org.apache.http.entity.mime.Header.java
org.apache.http.entity.mime.HttpMultipartMode.java
org.apache.http.entity.mime.HttpMultipart.java
org.apache.http.entity.mime.MIME.java
org.apache.http.entity.mime.MinimalField.java
org.apache.http.entity.mime.MultipartEntity.java
org.apache.http.entity.mime.content.AbstractContentBody.java
org.apache.http.entity.mime.content.ByteArrayBody.java
org.apache.http.entity.mime.content.ContentBody.java
org.apache.http.entity.mime.content.ContentDescriptor.java
org.apache.http.entity.mime.content.FileBody.java
org.apache.http.entity.mime.content.InputStreamBody.java
org.apache.http.entity.mime.content.StringBody.java