View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *  http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  
20  package javax.mail.internet;
21  
22  import java.util.Enumeration;
23  import javax.mail.MessagingException;
24  import javax.mail.Part;
25  
26  /**
27   * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
28   */
29  public interface MimePart extends Part {
30      public abstract void addHeaderLine(String line) throws MessagingException;
31  
32      public abstract Enumeration getAllHeaderLines() throws MessagingException;
33  
34      public abstract String getContentID() throws MessagingException;
35  
36      public abstract String[] getContentLanguage() throws MessagingException;
37  
38      public abstract String getContentMD5() throws MessagingException;
39  
40      public abstract String getEncoding() throws MessagingException;
41  
42      public abstract String getHeader(String header, String delimiter)
43              throws MessagingException;
44  
45      public abstract Enumeration getMatchingHeaderLines(String[] names)
46              throws MessagingException;
47  
48      public abstract Enumeration getNonMatchingHeaderLines(String[] names)
49              throws MessagingException;
50  
51      public abstract void setContentLanguage(String[] languages)
52              throws MessagingException;
53  
54      public abstract void setContentMD5(String content)
55              throws MessagingException;
56  
57      public abstract void setText(String text) throws MessagingException;
58  
59      public abstract void setText(String text, String charset)
60              throws MessagingException;
61  
62      public abstract void setText(String text, String charset, String subType)
63              throws MessagingException;
64  }