01: /*
02: * $Id: MimeConstants.java,v 1.3 2006/09/29 12:05:14 kumarjayanti Exp $
03: */
04:
05: /*
06: * The contents of this file are subject to the terms
07: * of the Common Development and Distribution License
08: * (the License). You may not use this file except in
09: * compliance with the License.
10: *
11: * You can obtain a copy of the license at
12: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
13: * See the License for the specific language governing
14: * permissions and limitations under the License.
15: *
16: * When distributing Covered Code, include this CDDL
17: * Header Notice in each file and include the License file
18: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
19: * If applicable, add the following below the CDDL Header,
20: * with the fields enclosed by brackets [] replaced by
21: * you own identifying information:
22: * "Portions Copyrighted [year] [name of copyright owner]"
23: *
24: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
25: */
26:
27: package com.sun.xml.wss.swa;
28:
29: public interface MimeConstants {
30: // rfc822, rfc204(5|6|7) charset for mime headers
31: public static final String US_ASCII = "US-ASCII";
32:
33: // rfc822 mime headers
34: public static final String CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
35: public static final String CONTENT_DESCRIPTION = "Content-Description";
36: public static final String CONTENT_DISPOSITION = "Content-Disposition";
37: public static final String CONTENT_ID = "Content-ID";
38: public static final String CONTENT_LOCATION = "Content-Location";
39: public static final String CONTENT_TYPE = "Content-Type";
40: public static final String CONTENT_LENGTH = "Content-Length";
41:
42: // rfc2045/6 canonicalized media type names
43: public static final String TEXT_TYPE = "text";
44: public static final String IMAGE_TYPE = "image";
45: public static final String APPLICATION_TYPE = "application";
46:
47: // rfc2045/6 canonicalized media sub-type names
48: public static final String XML_TYPE = "xml";
49: public static final String PLAIN_TYPE = "plain";
50: public static final String JPEG_TYPE = "jpeg";
51: public static final String GIF_TYPE = "gif";
52: public static final String OCTET_STREAM_TYPE = "octet-stream";
53:
54: // rfc2045/6 canonicalized parameters for text/image/application types
55: public static final String CHARSET = "charset";
56:
57: // rfc2045/6 canonicalized parameter names for application type
58: // for octet-stream subtype
59: public static final String TYPE = "type";
60: public static final String PADDING = "padding";
61: public static final String CONVERSIONS = "conversions";
62: public static final String INTERPRETER = "interpreter";
63:
64: // rfc2183 canonicalized disposition type values for Content-Disposition
65: public static final String INLINE = "inline";
66: public static final String ATTACHMENT = "attachment";
67:
68: // rfc2183 canonicalized parameter names for Content-Disposition
69: public static final String FILENAME = "filename";
70: public static final String CREATION_DATE = "creation-date";
71: public static final String MODIFICATION_DATE = "modification-date";
72: public static final String READ_DATE = "read-date";
73: public static final String SIZE = "size";
74:
75: // rfc2045/6 content-types
76: public static final String TEXT_XML_TYPE = TEXT_TYPE + "/"
77: + XML_TYPE;
78: public static final String TEXT_PLAIN_TYPE = TEXT_TYPE + "/"
79: + PLAIN_TYPE;
80: public static final String IMAGE_JPEG_TYPE = IMAGE_TYPE + "/"
81: + JPEG_TYPE;
82: public static final String IMAGE_GIF_TYPE = IMAGE_TYPE + "/"
83: + GIF_TYPE;
84: public static final String APPLICATION_OCTET_STREAM_TYPE = APPLICATION_TYPE
85: + "/" + OCTET_STREAM_TYPE;
86:
87: }
|