|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.plugins.providers.multipart.ContentIDUtils
public class ContentIDUtils
Utility class to help generate, convert RFC compliant Content-ID and cid.
Field Summary | |
---|---|
static java.lang.String |
CID_URL_SCHEME
|
Constructor Summary | |
---|---|
ContentIDUtils()
|
Method Summary | |
---|---|
static java.lang.String |
convertCidToContentID(java.lang.String cid)
|
static java.lang.String |
convertContentIDToCid(java.lang.String contentID)
|
static java.lang.String |
generateCidFromAddrSpec(java.lang.String addrSpec)
Helper method to generate a standards-compliant cid url from the supplied addrSpec. |
static java.lang.String |
generateContentID()
Calls generateContentIDFromAddrSpec(String) with
generateRFC822AddrSpec() as parameter. |
static java.lang.String |
generateContentIDFromAddrSpec(java.lang.String addrSpec)
Helper method to generate a standards-compliant Content-ID header value from the supplied addrSpec. |
static java.lang.String |
generateRFC822AddrSpec()
Helper method to generate a standards-compliant, random addr-spec as described in RFC822. |
static java.lang.String |
parseAddrSpecFromCid(java.lang.String cid)
|
static java.lang.String |
parseAddrSpecFromContentID(java.lang.String contentID)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CID_URL_SCHEME
Constructor Detail |
---|
public ContentIDUtils()
Method Detail |
---|
public static java.lang.String generateContentID()
generateContentIDFromAddrSpec(String)
with
generateRFC822AddrSpec()
as parameter.
public static java.lang.String generateContentIDFromAddrSpec(java.lang.String addrSpec)
public static java.lang.String generateRFC822AddrSpec()
public static java.lang.String generateCidFromAddrSpec(java.lang.String addrSpec)
public static java.lang.String parseAddrSpecFromCid(java.lang.String cid)
cid
- the RFC2392 compliant cid
public static java.lang.String parseAddrSpecFromContentID(java.lang.String contentID)
contentID
- the RFC2045 compliant Content-ID
public static java.lang.String convertCidToContentID(java.lang.String cid)
cid
- the RFC2392 compliant cid
public static java.lang.String convertContentIDToCid(java.lang.String contentID)
contentID
- the RFC2045 compliant Content-ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |