public class ContentIDUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CID_URL_SCHEME |
Constructor and Description |
---|
ContentIDUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
convertCidToContentID(String cid) |
static String |
convertContentIDToCid(String contentID) |
static String |
generateCidFromAddrSpec(String addrSpec)
Helper method to generate a standards-compliant cid url from the supplied
addrSpec.
|
static String |
generateContentID()
Calls
generateContentIDFromAddrSpec(String) with
generateRFC822AddrSpec() as parameter. |
static String |
generateContentIDFromAddrSpec(String addrSpec)
Helper method to generate a standards-compliant Content-ID header value
from the supplied addrSpec.
|
static String |
generateRFC822AddrSpec()
Helper method to generate a standards-compliant, random addr-spec as
described in RFC822.
|
static String |
parseAddrSpecFromCid(String cid) |
static String |
parseAddrSpecFromContentID(String contentID) |
public static final String CID_URL_SCHEME
public static String generateContentID()
generateContentIDFromAddrSpec(String)
with
generateRFC822AddrSpec()
as parameter.public static String generateContentIDFromAddrSpec(String addrSpec)
public static String generateRFC822AddrSpec()
public static String generateCidFromAddrSpec(String addrSpec)
public static String parseAddrSpecFromCid(String cid)
cid
- the RFC2392 compliant cidpublic static String parseAddrSpecFromContentID(String contentID)
contentID
- the RFC2045 compliant Content-IDpublic static String convertCidToContentID(String cid)
cid
- the RFC2392 compliant cidCopyright © 2018 JBoss by Red Hat. All rights reserved.