public class LocalDateTimeAdapter extends XmlAdapter<String,LocalDateTime>
LocalDateTime instances and
String ones. Required in order to make Wildfly's Jackson version to
properly convert between LocalDateTime instances to JSON values.
XmlJavaTypeAdapter annotation pointing to this class.
| Constructor and Description |
|---|
LocalDateTimeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
String |
marshal(LocalDateTime value) |
LocalDateTime |
unmarshal(String value) |
public LocalDateTime unmarshal(String value) throws Exception
unmarshal in class XmlAdapter<String,LocalDateTime>Exceptionpublic String marshal(LocalDateTime value) throws Exception
marshal in class XmlAdapter<String,LocalDateTime>ExceptionCopyright © 2016. All rights reserved.