Package org.jivesoftware.smackx.bob
Class ContentId
- java.lang.Object
-
- org.jivesoftware.smackx.bob.ContentId
-
public class ContentId extends java.lang.Object
Content-ID class.
-
-
Constructor Summary
Constructors Constructor Description ContentId(java.lang.String hash, java.lang.String hashType)
BoB hash constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
static ContentId
fromCid(java.lang.String cid)
Get BoB hash from cid attribute string.static ContentId
fromSrc(java.lang.String src)
Get BoB hash from src attribute string.java.lang.String
getCid()
BoB hash to cid attribute string.java.lang.String
getHash()
Get the hash.java.lang.String
getHashType()
Get the hash type.int
hashCode()
java.lang.String
toSrc()
BoB hash to src attribute string.
-
-
-
Constructor Detail
-
ContentId
public ContentId(java.lang.String hash, java.lang.String hashType)
BoB hash constructor.- Parameters:
hash
- TODO javadoc me pleasehashType
- TODO javadoc me please
-
-
Method Detail
-
getHash
public java.lang.String getHash()
Get the hash.- Returns:
- the hash
-
getHashType
public java.lang.String getHashType()
Get the hash type.- Returns:
- the hash type
-
toSrc
public java.lang.String toSrc()
BoB hash to src attribute string.- Returns:
- src attribute string
-
getCid
public java.lang.String getCid()
BoB hash to cid attribute string.- Returns:
- cid attribute string
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
fromSrc
public static ContentId fromSrc(java.lang.String src)
Get BoB hash from src attribute string.- Parameters:
src
- TODO javadoc me please- Returns:
- the BoB hash
-
-