JAIN SIP API
v1.1 - 23rd June 2003

javax.sip.header
Interface MimeVersionHeader

All Superinterfaces:
java.lang.Cloneable, Header, java.io.Serializable

public interface MimeVersionHeader
extends Header

SIP messages MAY include a single MIME-Version general-header field to indicate what version of the MIME protocol was used to construct the message. Use of the MIME-Version header field indicates that the message is in full compliance with the MIME protocol as defined in RFC2045. Proxies/gateways are responsible for ensuring full compliance (where possible) when exporting SIP messages to strict MIME environments.

For Example:
MIME-Version: 1.0

Since:
1.1

Field Summary
static java.lang.String NAME
          Name of MimeVersionHeader
 
Method Summary
 int getMajorVersion()
          Gets the Major version value of this MimeVersionHeader.
 int getMinorVersion()
          Gets the Minor version value of this MimeVersionHeader.
 void setMajorVersion(int majorVersion)
          Sets the Major-Version argument of this MimeVersionHeader to the supplied majorVersion value.
 void setMinorVersion(int minorVersion)
          Sets the Minor-Version argument of this MimeVersionHeader to the supplied minorVersion value.
 
Methods inherited from interface javax.sip.header.Header
clone, equals, getName, toString
 

Field Detail

NAME

public static final java.lang.String NAME
Name of MimeVersionHeader

See Also:
Constant Field Values
Method Detail

getMinorVersion

public int getMinorVersion()
Gets the Minor version value of this MimeVersionHeader.

Returns:
the Minor version of this MimeVersionHeader

setMinorVersion

public void setMinorVersion(int minorVersion)
                     throws InvalidArgumentException
Sets the Minor-Version argument of this MimeVersionHeader to the supplied minorVersion value.

Parameters:
minorVersion - - the new minor MIME version
Throws:
InvalidArgumentException - if the supplied value is less than zero.

getMajorVersion

public int getMajorVersion()
Gets the Major version value of this MimeVersionHeader.

Returns:
the Major version of this MimeVersionHeader

setMajorVersion

public void setMajorVersion(int majorVersion)
                     throws InvalidArgumentException
Sets the Major-Version argument of this MimeVersionHeader to the supplied majorVersion value.

Parameters:
majorVersion - - the new major MIME version
Throws:
InvalidArgumentException - if the supplied version is less than zero.

JAIN SIP API
v1.1 - 23rd June 2003

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing to the
JAIN-SIP-Interest list at http://archives.java.sun.com
Copyright - 2003 Sun Microsystems