Module io.hotmoka.local
Package io.hotmoka.local
Interface ResponseBuilder<Request extends TransactionRequest<Response>,Response extends TransactionResponse>
-
- Type Parameters:
Response- the type of the response of the transaction
- All Known Implementing Classes:
io.hotmoka.local.internal.transactions.AbstractResponseBuilder,InitialResponseBuilder,NonInitialResponseBuilder
public interface ResponseBuilder<Request extends TransactionRequest<Response>,Response extends TransactionResponse>The creator of a response from a request. It executes a transaction from the request and builds the corresponding response.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EngineClassLoadergetClassLoader()Yields the class loader used to build the response.RequestgetRequest()Yield the request for which this builder was created.ResponsegetResponse()Yields the response corresponding to the request for which this builder was created.voidreplaceReverifiedResponses()Replaces all reverified responses into the store of the node for which the response is built.
-
-
-
Method Detail
-
getRequest
Request getRequest()
Yield the request for which this builder was created.- Returns:
- the request
-
getResponse
Response getResponse() throws TransactionRejectedException
Yields the response corresponding to the request for which this builder was created.- Returns:
- the response
- Throws:
TransactionRejectedException- if the response could not be created
-
replaceReverifiedResponses
void replaceReverifiedResponses()
Replaces all reverified responses into the store of the node for which the response is built.
-
getClassLoader
EngineClassLoader getClassLoader()
Yields the class loader used to build the response.- Returns:
- the class loader
-
-