Class ISO8601DateAdapter

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
com.atlassian.bamboo.rest.common.adapters.ISO8601DateAdapter

@PublicApi public class ISO8601DateAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
Converts dates to and from strings in the format specified by ISO8601.
See Also:
  • Constructor Details

    • ISO8601DateAdapter

      public ISO8601DateAdapter()
  • Method Details

    • unmarshal

      @Nullable public @Nullable Date unmarshal(@Nullable @Nullable String date) throws Exception
      Specified by:
      unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
      Throws:
      Exception
    • marshal

      @Nullable public @Nullable String marshal(@Nullable @Nullable Date date) throws Exception
      Specified by:
      marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
      Throws:
      Exception