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:
- Closeable, Flushable, Appendable
public class CacheDirectiveWriter
- extends HeaderWriter<CacheDirective>
Cache directive header writer.
- Author:
- Thierry Boileau
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 |
CacheDirectiveWriter
public CacheDirectiveWriter()
write
public static String write(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:
HeaderWriter
- Appends a value.
- Specified by:
append
in class HeaderWriter<CacheDirective>
- Parameters:
directive
- The value.
- Returns:
- This writer.
Copyright © 2005-2013 Restlet.