Class DateTimeTag

  • All Implemented Interfaces:
    javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

    public class DateTimeTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    This class replaces the <fmt:formatDate /> tag. Why do we need a new tag? => fmt can't be configured via a System Property (without side effects) => we want to support the new java.time classes It will output datetimes as ISO_8601 type style unless otherwise defined in opennms.properties. See also: https://en.wikipedia.org/wiki/ISO_8601 and https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
    • Constructor Summary

      Constructors 
      Constructor Description
      DateTimeTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void doTag()  
      void setDate​(java.util.Date date)
      Deprecated.
      void setInstant​(java.time.Instant instant)  
      • Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport

        findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateTimeTag

        public DateTimeTag()
    • Method Detail

      • doTag

        public void doTag()
                   throws java.io.IOException
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
        Throws:
        java.io.IOException
      • setInstant

        public void setInstant​(java.time.Instant instant)
      • setDate

        @Deprecated
        public void setDate​(java.util.Date date)
        Deprecated.