Package org.restlet.engine.header
Class CacheDirectiveWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.StringWriter
-
- org.restlet.engine.header.HeaderWriter<CacheDirective>
-
- org.restlet.engine.header.CacheDirectiveWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class CacheDirectiveWriter extends HeaderWriter<CacheDirective>
Cache directive header writer.
-
-
Constructor Summary
Constructors Constructor Description CacheDirectiveWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheDirectiveWriterappend(CacheDirective directive)Appends a value.static java.lang.Stringwrite(java.util.List<CacheDirective> directives)Writes a list of cache directives 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<CacheDirective> directives)
Writes a list of cache directives with a comma separator.- Parameters:
directives- The list of cache directives.- Returns:
- The formatted list of cache directives.
-
append
public CacheDirectiveWriter append(CacheDirective directive)
Description copied from class:HeaderWriterAppends a value.- Specified by:
appendin classHeaderWriter<CacheDirective>- Parameters:
directive- The value.- Returns:
- This writer.
-
-