Class TestResource.RequestInfo

java.lang.Object
com.reallifedeveloper.common.resource.TestResource.RequestInfo
Enclosing class:
TestResource

public static class TestResource.RequestInfo extends Object
Information about an HTTP request.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestInfo(String path, String method, String data)
    Creates a new RequestInfo object using the given path and method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gives the data that was sent in the body of this request if it is a POST or PUT request, otherwise null.
    Gives the HTTP method of the request, e.g., "GET, "POST", "PUT" and so on.
    Gives the path of the request, not including the base URI.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RequestInfo

      public RequestInfo(String path, String method, String data)
      Creates a new RequestInfo object using the given path and method.
      Parameters:
      path - the path of the request, not including the base URI
      method - the HTTP method of the request, e.g., "GET", "POST", "PUT" and so on
      data - the data that was sent in the body of this request if it is a POST or PUT request, otherwise null
  • Method Details

    • path

      public String path()
      Gives the path of the request, not including the base URI.
      Returns:
      the path of the request
    • method

      public String method()
      Gives the HTTP method of the request, e.g., "GET, "POST", "PUT" and so on.
      Returns:
      the HTTP method of the request
    • data

      public String data()
      Gives the data that was sent in the body of this request if it is a POST or PUT request, otherwise null.
      Returns:
      the data that was sent in the body of this request, or null