Class ChunkedContent.ChunkedContentBuilder
java.lang.Object
org.codice.ddf.itests.common.restito.ChunkedContent.ChunkedContentBuilder
- Enclosing class:
- ChunkedContent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.restito.semantics.Actionbuild()Builds Action.delayBetweenChunks(Duration delay) Set delay between sending each character of the message in milliseconds.fail(int numberOfFailures) Number of times to fail (simulate network disconnect) after sending the first character.
-
Constructor Details
-
ChunkedContentBuilder
Set message.- Parameters:
message- Message to be sent in the response.
-
-
Method Details
-
delayBetweenChunks
Set delay between sending each character of the message in milliseconds.- Parameters:
delay- Time to wait between sending each character of the message.- Returns:
- Builder object
-
fail
Number of times to fail (simulate network disconnect) after sending the first character. Once this number is reached, the message will send successfully.- Parameters:
numberOfFailures- Number of times to fail (simulate network disconnect) after sending the first character. Once this number is reached, the message will send successfully.- Returns:
- Builder object
-
build
public com.xebialabs.restito.semantics.Action build()Builds Action.- Returns:
- Action constructed from builder object.
-