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 booleanequals(java.lang.Object other)static ContentIdfromCid(java.lang.String cid)Get BoB hash from cid attribute string.static ContentIdfromSrc(java.lang.String src)Get BoB hash from src attribute string.java.lang.StringgetCid()BoB hash to cid attribute string.java.lang.StringgetHash()Get the hash.java.lang.StringgetHashType()Get the hash type.inthashCode()java.lang.StringtoSrc()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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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
-
-