Class ContentId

java.lang.Object
org.jivesoftware.smackx.bob.ContentId

public class ContentId extends Object
Content-ID class.
See Also:
  • Constructor Details

    • ContentId

      public ContentId(String hash, String hashType)
      BoB hash constructor.
      Parameters:
      hash - TODO javadoc me please
      hashType - TODO javadoc me please
  • Method Details

    • getHash

      public String getHash()
      Get the hash.
      Returns:
      the hash
    • getHashType

      public String getHashType()
      Get the hash type.
      Returns:
      the hash type
    • toSrc

      public String toSrc()
      BoB hash to src attribute string.
      Returns:
      src attribute string
    • getCid

      public String getCid()
      BoB hash to cid attribute string.
      Returns:
      cid attribute string
    • equals

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

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

      public static ContentId fromSrc(String src)
      Get BoB hash from src attribute string.
      Parameters:
      src - TODO javadoc me please
      Returns:
      the BoB hash
    • fromCid

      public static ContentId fromCid(String cid)
      Get BoB hash from cid attribute string.
      Parameters:
      cid - TODO javadoc me please
      Returns:
      the BoB hash