Interface HttpExchangeRepository
- All Known Implementing Classes:
InMemoryHttpExchangeRepository
public interface HttpExchangeRepository
A repository for
HttpExchange instances.- Since:
- 3.0.0
- Author:
- Dave Syer, Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(HttpExchange httpExchange) Adds anHttpExchangeinstance to the repository.findAll()Find allHttpExchangeinstances contained in the repository.
-
Method Details
-
findAll
List<HttpExchange> findAll()Find allHttpExchangeinstances contained in the repository.- Returns:
- all contained HTTP exchanges
-
add
Adds anHttpExchangeinstance to the repository.- Parameters:
httpExchange- the HTTP exchange to add
-