| 
 | Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.common.utils.RFC2231
public class RFC2231
RFC-2231 specifies how a MIME parameter value, like Content-Disposition's filename, can be encoded to contain arbitrary
 character sets.
| Method Summary | |
|---|---|
| static String | encodeContentDisposition(String filename,
                         boolean inline,
                         String userAgent)Encodes a Content-Dispositionheader. | 
| static void | percentEscape(StringBuilder buf,
              String value)Does a simple %-escaping of the UTF-8 bytes of the value. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static void percentEscape(StringBuilder buf,
                                 String value)
buf - the buffer to which escaped chars are appendedvalue - the value to escape
public static String encodeContentDisposition(String filename,
                                              boolean inline,
                                              String userAgent)
Content-Disposition header. For some user agents the
 full RFC-2231 encoding won't be performed as they don't understand it.
filename - the filenameinline - true for an inline disposition, false for
            an attachmentuserAgent - the userAgent
Content-Disposition
         header| 
 | Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||