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, @Nullable String data) Creates a newRequestInfo
object using the given path and method. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
data()
Gives the data that was sent in the body of this request if it is a POST or PUT request, otherwisenull
.method()
Gives the HTTP method of the request, e.g., "GET, "POST", "PUT" and so on.path()
Gives the path of the request, not including the base URI.
-
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
-