Package com.netscape.certsrv.util
Class DateAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>
-
- com.netscape.certsrv.util.DateAdapter
-
public class DateAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>
The DateAdapter class provides custom marshaling for Date.- Author:
- Endi S. Dewata
-
-
Constructor Summary
Constructors Constructor Description DateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(java.util.Date value)
java.util.Date
unmarshal(java.lang.String value)
-
-
-
Method Detail
-
unmarshal
public java.util.Date unmarshal(java.lang.String value) throws java.lang.Exception
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>
- Throws:
java.lang.Exception
-
marshal
public java.lang.String marshal(java.util.Date value) throws java.lang.Exception
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>
- Throws:
java.lang.Exception
-
-