com.jayway.restassured.specification
Interface RequestSender

All Known Subinterfaces:
FilterableRequestSpecification, FilterableResponseSpecification, RequestSpecification, ResponseSpecification
All Known Implementing Classes:
RequestSpecificationImpl, ResponseSpecificationImpl, TestSpecificationImpl

public interface RequestSender


Method Summary
 Response delete(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
          Perform a DELETE request to a path.
 Response delete(java.lang.String path, java.lang.Object... pathParams)
          Perform a DELETE request to a path.
 Response get(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
          Perform a GET request to a path.
 Response get(java.lang.String path, java.lang.Object... pathParams)
          Perform a GET request to a path.
 Response head(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
          Perform a HEAD request to a path.
 Response head(java.lang.String path, java.lang.Object... pathParams)
          Perform a HEAD request to a path.
 Response post(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
          Perform a POST request to a path.
 Response post(java.lang.String path, java.lang.Object... pathParams)
          Perform a POST request to a path.
 Response put(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
          Perform a PUT request to a path.
 Response put(java.lang.String path, java.lang.Object... pathParams)
          Perform a PUT request to a path.
 

Method Detail

get

Response get(java.lang.String path,
             java.lang.Object... pathParams)
Perform a GET request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters. E.g. if path is "/book/{hotelId}/{roomNumber}" you can do get("/book/{hotelName}/{roomNumber}", "Hotels R Us", 22);.
Returns:
The response of the request.

get

Response get(java.lang.String path,
             java.util.Map<java.lang.String,?> pathParams)
Perform a GET request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters.
Returns:
The response of the request.

post

Response post(java.lang.String path,
              java.lang.Object... pathParams)
Perform a POST request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters. E.g. if path is "/book/{hotelId}/{roomNumber}" you can do post("/book/{hotelName}/{roomNumber}", "Hotels R Us", 22);.
Returns:
The response of the request.

post

Response post(java.lang.String path,
              java.util.Map<java.lang.String,?> pathParams)
Perform a POST request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters.
Returns:
The response of the request.

put

Response put(java.lang.String path,
             java.lang.Object... pathParams)
Perform a PUT request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters. E.g. if path is "/book/{hotelId}/{roomNumber}" you can do put("/book/{hotelName}/{roomNumber}", "Hotels R Us", 22);.
Returns:
The response of the request.

put

Response put(java.lang.String path,
             java.util.Map<java.lang.String,?> pathParams)
Perform a PUT request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters.
Returns:
The response of the request.

delete

Response delete(java.lang.String path,
                java.lang.Object... pathParams)
Perform a DELETE request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters. E.g. if path is "/book/{hotelId}/{roomNumber}" you can do delete("/book/{hotelName}/{roomNumber}", "Hotels R Us", 22);.
Returns:
The response of the request.

delete

Response delete(java.lang.String path,
                java.util.Map<java.lang.String,?> pathParams)
Perform a DELETE request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters.
Returns:
The response of the request.

head

Response head(java.lang.String path,
              java.lang.Object... pathParams)
Perform a HEAD request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters. E.g. if path is "/book/{hotelId}/{roomNumber}" you can do head("/book/{hotelName}/{roomNumber}", "Hotels R Us", 22);.
Returns:
The response of the request.

head

Response head(java.lang.String path,
              java.util.Map<java.lang.String,?> pathParams)
Perform a HEAD request to a path. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as http://localhost:8080/path. In this case it's enough to use /path.

Parameters:
path - The path to send the request to.
pathParams - The path parameters.
Returns:
The response of the request.


Copyright © 2010-2012. All Rights Reserved.