Class Atom


  • @Beta
    public final class Atom
    extends java.lang.Object
    Beta
    Atom Utilities.
    Since:
    1.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  Atom.StopAtAtomEntry  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ATOM_NAMESPACE
      Atom namespace.
      static java.lang.String MEDIA_TYPE
      "application/atom+xml; charset=utf-8" media type used as a default for Atom parsing.
      private static PercentEscaper SLUG_ESCAPER
      Escaper for the Slug header.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Atom()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkContentType​(java.lang.String contentType)
      Checks the given content type matches the Atom content type specified in MEDIA_TYPE.
      static void setSlugHeader​(HttpHeaders headers, java.lang.String value)
      Sets the "Slug" header, properly escaping the header value.
      • Methods inherited from class java.lang.Object

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

      • Atom

        private Atom()
    • Method Detail

      • checkContentType

        public static void checkContentType​(java.lang.String contentType)
        Checks the given content type matches the Atom content type specified in MEDIA_TYPE.
        Throws:
        java.lang.IllegalArgumentException - if content type doesn't match
      • setSlugHeader

        public static void setSlugHeader​(HttpHeaders headers,
                                         java.lang.String value)
        Sets the "Slug" header, properly escaping the header value. See The Slug Header.
        Since:
        1.14