Package org.jdrupes.httpcodec.types
Class Directive.DirectiveConverter
java.lang.Object
org.jdrupes.httpcodec.types.Directive.DirectiveConverter
- Enclosing class:
- Directive
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasFieldValue
(Directive value) Returns the representation of this value in a header field.fromFieldValue
(String text) Parses the given text and returns the parsed value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdrupes.httpcodec.types.Converter
asHeaderField
-
Constructor Details
-
DirectiveConverter
public DirectiveConverter()
-
-
Method Details
-
asFieldValue
Description copied from interface:Converter
Returns the representation of this value in a header field.- Specified by:
asFieldValue
in interfaceConverter<Directive>
- Parameters:
value
- the value to be converted- Returns:
- the representation
-
fromFieldValue
Description copied from interface:Converter
Parses the given text and returns the parsed value.- Specified by:
fromFieldValue
in interfaceConverter<Directive>
- Parameters:
text
- the value from the header field- Returns:
- the parsed value
- Throws:
ParseException
- if the value cannot be parsed
-