All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dg.libs.rest.HttpRequest Maven / Gradle / Ivy

package com.dg.libs.rest;

/**
 * @author darko.grozdanovski The {@link HttpRequest} interface has the
 *         responsibility to send a request object to the server which is used
 *         for data exchange with the server behind the scenes. It contains
 *         methods that run in threads.
 */
public interface HttpRequest {

  /**
   * This method runs asynchronously in the same thread as the application and
   * launches a service for further server communication.
   */
  public void executeAsync();

  /**
   * This method runs in a different thread and executes the request for the
   * server.
   */
  public abstract void execute();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy