Android Open Source - RestLib Request Method






From Project

Back to project page RestLib.

License

The source code is released under:

MIT License

If you think the Android project RestLib 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

package github.crazymumu.restlib.http;
/*from   ww  w .  j  a v a  2s .c om*/
/**
 * The set of common methods for HTTP/1.1 is defined below. Although this set
 * can be expanded, additional methods cannot be assumed to share the same
 * semantics for separately extended clients and servers.
 * 
 * @author Crazy MuMu
 */
public interface RequestMethod {
  /**
   * The GET method means retrieve whatever information (in the form of an
   * entity) is identified by the Request-URI.
   */
  public final static String Get = "GET";

  /**
   * The POST method is used to request that the origin server accept the
   * entity enclosed in the request as a new subordinate of the resource
   * identified by the Request-URI in the Request-Line.
   */
  public final static String Post = "POST";

  /**
   * The OPTIONS method represents a request for information about the
   * communication options available on the request/response chain identified
   * by the Request-URI.
   */
  public final static String Options = "OPTIONS";

  /**
   * The HEAD method is identical to GET except that the server MUST NOT
   * return a message-body in the response.
   */
  public final static String Head = "HEAD";

  /**
   * The PUT method requests that the enclosed entity be stored under the
   * supplied Request-URI.
   */
  public final static String Put = "PUT";

  /**
   * The DELETE method requests that the origin server delete the resource
   * identified by the Request-URI.
   */
  public final static String Delete = "DELETE";

  /**
   * The TRACE method is used to invoke a remote, application-layer loop- back
   * of the request message.
   */
  public final static String Trace = "TRACE";

  /**
   * This specification reserves the method name CONNECT for use with a proxy
   * that can dynamically switch to being a tunnel.
   */
  public final static String Connect = "CONNECT";
}




Java Source Code List

github.crazymumu.restlib.RestRequest.java
github.crazymumu.restlib.RestResponse.java
github.crazymumu.restlib.RestResultReceiver.java
github.crazymumu.restlib.RestResult.java
github.crazymumu.restlib.RestService.java
github.crazymumu.restlib.core.CustomSSLSocketFactory.java
github.crazymumu.restlib.core.HttpsClient.java
github.crazymumu.restlib.core.SSLContextAlgorithm.java
github.crazymumu.restlib.http.RequestMethod.java
github.crazymumu.restlib.http.StatusCode.java
github.crazymumu.restlib.http.UserAgent.java
github.crazymumu.restlib.sample.MainActivity.java