Package org.restlet.engine.header
Class ExpectationWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.StringWriter
-
- org.restlet.engine.header.HeaderWriter<org.restlet.data.Expectation>
-
- org.restlet.engine.header.ExpectationWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class ExpectationWriter extends HeaderWriter<org.restlet.data.Expectation>
Expectation header writer.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description ExpectationWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpectationWriterappend(org.restlet.data.Expectation expectation)Appends a value.static java.lang.Stringwrite(java.util.List<org.restlet.data.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, canWrite
-
-
-
-
Method Detail
-
write
public static java.lang.String write(java.util.List<org.restlet.data.Expectation> expectations)
Writes a list of expectations with a comma separator.- Parameters:
expectations- The list of expectations.- Returns:
- The formatted list of expectations.
-
append
public ExpectationWriter append(org.restlet.data.Expectation expectation)
Description copied from class:HeaderWriterAppends a value.- Specified by:
appendin classHeaderWriter<org.restlet.data.Expectation>- Parameters:
expectation- The value.- Returns:
- This writer.
-
-