Class UriFragment

java.lang.Object
io.helidon.common.uri.UriFragment

public class UriFragment extends Object
Fragment section of the URI.
  • Method Details

    • create

      public static UriFragment create(String rawFragment)
      Create a fragment from raw value.
      Parameters:
      rawFragment - fragment encoded value
      Returns:
      a new instance
    • createFromDecoded

      public static UriFragment createFromDecoded(String fragment)
      Create a fragment from decoded value.
      Parameters:
      fragment - fragment decoded value
      Returns:
      a new instance
    • empty

      public static UriFragment empty()
      Empty fragment.
      Returns:
      empty instance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasValue

      public boolean hasValue()
      Whether there is a fragment.
      Returns:
      true if fragment exists
    • rawValue

      public String rawValue()
      Raw (encoded) value of the fragment.
      Returns:
      encoded fragment
    • value

      public String value()
      Value (decoded) of the fragment.
      Returns:
      decoded fragment