Class TestResource.RequestInfo
java.lang.Object
com.reallifedeveloper.common.resource.TestResource.RequestInfo
- Enclosing class:
TestResource
Information about an HTTP request.
-
Constructor Summary
ConstructorsConstructorDescriptionRequestInfo
(String path, String method, String data) Creates a newRequestInfo
object using the given path and method. -
Method Summary
-
Constructor Details
-
RequestInfo
Creates a newRequestInfo
object using the given path and method.- Parameters:
path
- the path of the request, not including the base URImethod
- the HTTP method of the request, e.g., "GET", "POST", "PUT" and so ondata
- the data that was sent in the body of this request if it is a POST or PUT request, otherwisenull
-
-
Method Details
-
path
Gives the path of the request, not including the base URI.- Returns:
- the path of the request
-
method
Gives the HTTP method of the request, e.g., "GET, "POST", "PUT" and so on.- Returns:
- the HTTP method of the request
-
data
Gives the data that was sent in the body of this request if it is a POST or PUT request, otherwisenull
.- Returns:
- the data that was sent in the body of this request, or
null
-