001 /**
002 *
003 * Copyright 2003-2006 The Apache Software Foundation
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 package javax.mail.internet;
019
020 import java.util.Enumeration;
021 import javax.mail.MessagingException;
022 import javax.mail.Part;
023
024 /**
025 * @version $Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
026 */
027 public interface MimePart extends Part {
028 public abstract void addHeaderLine(String line) throws MessagingException;
029
030 public abstract Enumeration getAllHeaderLines() throws MessagingException;
031
032 public abstract String getContentID() throws MessagingException;
033
034 public abstract String[] getContentLanguage() throws MessagingException;
035
036 public abstract String getContentMD5() throws MessagingException;
037
038 public abstract String getEncoding() throws MessagingException;
039
040 public abstract String getHeader(String header, String delimiter)
041 throws MessagingException;
042
043 public abstract Enumeration getMatchingHeaderLines(String[] names)
044 throws MessagingException;
045
046 public abstract Enumeration getNonMatchingHeaderLines(String[] names)
047 throws MessagingException;
048
049 public abstract void setContentLanguage(String[] languages)
050 throws MessagingException;
051
052 public abstract void setContentMD5(String content)
053 throws MessagingException;
054
055 public abstract void setText(String text) throws MessagingException;
056
057 public abstract void setText(String text, String charset)
058 throws MessagingException;
059
060 public abstract void setText(String text, String charset, String subType)
061 throws MessagingException;
062 }