Package io.urf.surf

Class SURF.Tag

  • Enclosing class:
    SURF

    public static final class SURF.Tag
    extends java.lang.Object
    Utilities for working with SURF tags.
    Author:
    Garret Wilson
    • Constructor Summary

      Constructors 
      Constructor Description
      Tag()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.net.URI checkArgumentValid​(java.net.URI tag)
      Ensures that the given URI is a valid resource tag.
      • Methods inherited from class java.lang.Object

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

      • Tag

        public Tag()
    • Method Detail

      • checkArgumentValid

        public static java.net.URI checkArgumentValid​(@Nonnull
                                                      java.net.URI tag)
        Ensures that the given URI is a valid resource tag.

        Primarily this ensures that the given URI is absolute and does not contain a fragment.

        Parameters:
        tag - The tag to validate.
        Returns:
        The given tag.
        Throws:
        java.lang.NullPointerException - if the given tag is null.
        java.lang.IllegalArgumentException - if the given URI is not a valid SURF tag.