Package org.restlet.engine.header
Class ExpectationWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Expectation header writer.
- Author:
- Jerome Louvel
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(Expectation expectation) Appends a value.static Stringwrite(List<Expectation> expectations) Writes a list of expectations with a comma separator.Methods inherited from class org.restlet.engine.header.HeaderWriter
append, append, append, append, append, append, appendComment, appendExtension, appendExtension, appendParameterSeparator, appendProduct, appendQuotedPair, appendQuotedString, appendSpace, appendToken, appendUriEncoded, appendValueSeparator, canWriteMethods inherited from class java.io.StringWriter
append, close, flush, getBuffer, toString, write, write, write, writeMethods inherited from class java.io.Writer
nullWriter, write
-
Constructor Details
-
ExpectationWriter
public ExpectationWriter()
-
-
Method Details
-
write
Writes a list of expectations with a comma separator.- Parameters:
expectations- The list of expectations.- Returns:
- The formatted list of expectations.
-
append
Description copied from class:HeaderWriterAppends a value.- Specified by:
appendin classHeaderWriter<Expectation>- Parameters:
expectation- The value.- Returns:
- This writer.
-