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(String path, Map<String,?> pathParams)
          Perform a DELETE request to a path.
 Response delete(String path, Object... pathParams)
          Perform a DELETE request to a path.
 Response get(String path, Map<String,?> pathParams)
          Perform a GET request to a path.
 Response get(String path, Object... pathParams)
          Perform a GET request to a path.
 Response head(String path, Map<String,?> pathParams)
          Perform a HEAD request to a path.
 Response head(String path, Object... pathParams)
          Perform a HEAD request to a path.
 Response post(String path, Map<String,?> pathParams)
          Perform a POST request to a path.
 Response post(String path, Object... pathParams)
          Perform a POST request to a path.
 Response put(String path, Map<String,?> pathParams)
          Perform a PUT request to a path.
 Response put(String path, Object... pathParams)
          Perform a PUT request to a path.
 

Method Detail

get

Response get(String path,
             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(String path,
             Map<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(String path,
              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(String path,
              Map<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(String path,
             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(String path,
             Map<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(String path,
                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(String path,
                Map<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(String path,
              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(String path,
              Map<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.