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 TypeMethodDescriptionvoid
add
(HttpExchange httpExchange) Adds anHttpExchange
instance to the repository.findAll()
Find allHttpExchange
instances contained in the repository.
-
Method Details
-
findAll
List<HttpExchange> findAll()Find allHttpExchange
instances contained in the repository.- Returns:
- all contained HTTP exchanges
-
add
Adds anHttpExchange
instance to the repository.- Parameters:
httpExchange
- the HTTP exchange to add
-