JSIP API v1.2
November 2006

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

Author:
BEA Systems, NIST

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, hashCode, toString
 

Field Detail

NAME

static final java.lang.String NAME
Name of MimeVersionHeader

See Also:
Constant Field Values
Method Detail

getMinorVersion

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

Returns:
the Minor version of this MimeVersionHeader

setMinorVersion

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

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

Returns:
the Major version of this MimeVersionHeader

setMajorVersion

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.

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems