1 package javax.sip.message;
2 
3 import java.io.Serializable;
4 import java.text.ParseException;
5 import java.util.ListIterator;
6 import javax.sip.SipException;
7 import javax.sip.header.ContentDispositionHeader;
8 import javax.sip.header.ContentEncodingHeader;
9 import javax.sip.header.ContentLanguageHeader;
10 import javax.sip.header.ContentLengthHeader;
11 import javax.sip.header.ContentTypeHeader;
12 import javax.sip.header.ExpiresHeader;
13 import javax.sip.header.Header;
14 
15 public interface Message extends Cloneable, Serializable {
addFirst(Header header)16     void addFirst(Header header) throws SipException, NullPointerException;
addHeader(Header header)17     void addHeader(Header header);
addLast(Header header)18     void addLast(Header header) throws SipException, NullPointerException;
19 
getHeader(String headerName)20     Header getHeader(String headerName);
setHeader(Header header)21     void setHeader(Header header);
22 
removeFirst(String headerName)23     void removeFirst(String headerName) throws NullPointerException;
removeLast(String headerName)24     void removeLast(String headerName) throws NullPointerException;
removeHeader(String headerName)25     void removeHeader(String headerName);
26 
getHeaderNames()27     ListIterator getHeaderNames();
getHeaders(String headerName)28     ListIterator getHeaders(String headerName);
getUnrecognizedHeaders()29     ListIterator getUnrecognizedHeaders();
30 
getApplicationData()31     Object getApplicationData();
setApplicationData(Object applicationData)32     void setApplicationData(Object applicationData);
33 
getContentLength()34     ContentLengthHeader getContentLength();
setContentLength(ContentLengthHeader contentLength)35     void setContentLength(ContentLengthHeader contentLength);
36 
getContentLanguage()37     ContentLanguageHeader getContentLanguage();
setContentLanguage(ContentLanguageHeader contentLanguage)38     void setContentLanguage(ContentLanguageHeader contentLanguage);
39 
getContentEncoding()40     ContentEncodingHeader getContentEncoding();
setContentEncoding(ContentEncodingHeader contentEncoding)41     void setContentEncoding(ContentEncodingHeader contentEncoding);
42 
getContentDisposition()43     ContentDispositionHeader getContentDisposition();
setContentDisposition(ContentDispositionHeader contentDisposition)44     void setContentDisposition(ContentDispositionHeader contentDisposition);
45 
getContent()46     Object getContent();
getRawContent()47     byte[] getRawContent();
setContent(Object content, ContentTypeHeader contentTypeHeader)48     void setContent(Object content, ContentTypeHeader contentTypeHeader)
49             throws ParseException;
removeContent()50     void removeContent();
51 
52 
getExpires()53     ExpiresHeader getExpires();
setExpires(ExpiresHeader expires)54     void setExpires(ExpiresHeader expires);
55 
getSIPVersion()56     String getSIPVersion();
setSIPVersion(String version)57     void setSIPVersion(String version) throws ParseException;
58 
clone()59     Object clone();
equals(Object object)60     boolean equals(Object object);
hashCode()61     int hashCode();
toString()62     String toString();
63 }
64