1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
106 * if known. |
106 * if known. |
107 * @since JavaMail 1.1 |
107 * @since JavaMail 1.1 |
108 */ |
108 */ |
109 protected MimeBodyPart parent; |
109 protected MimeBodyPart parent; |
110 |
110 |
111 protected static boolean ignoreMissingEndBoundary = true; |
111 protected static final boolean ignoreMissingEndBoundary; |
112 |
|
113 static { |
112 static { |
114 ignoreMissingEndBoundary = SAAJUtil.getSystemBoolean("saaj.mime.multipart.ignoremissingendboundary"); |
113 ignoreMissingEndBoundary = SAAJUtil.getSystemBoolean("saaj.mime.multipart.ignoremissingendboundary"); |
115 } |
114 } |
|
115 |
116 /** |
116 /** |
117 * Default constructor. An empty MimeMultipart object |
117 * Default constructor. An empty MimeMultipart object |
118 * is created. Its content type is set to "multipart/mixed". |
118 * is created. Its content type is set to "multipart/mixed". |
119 * A unique boundary string is generated and this string is |
119 * A unique boundary string is generated and this string is |
120 * setup as the "boundary" parameter for the |
120 * setup as the "boundary" parameter for the |