JSIP API v1.2
November 2006

javax.sip.header
Interface SubjectHeader

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

public interface SubjectHeader
extends Header

The Subject header field provides a summary or indicates the nature of the call, allowing call filtering without having to parse the session description. The session description does not have to use the same subject indication as the invitation.

For Example:
Subject: Where is the Moscone?

Author:
BEA Systems, NIST

Field Summary
static java.lang.String NAME
          Name of SubjectHeader
 
Method Summary
 java.lang.String getSubject()
          Gets the subject value of SubjectHeader.
 void setSubject(java.lang.String subject)
          Sets the subject value of the SubjectHeader to the supplied string subject 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 SubjectHeader

See Also:
Constant Field Values
Method Detail

setSubject

void setSubject(java.lang.String subject)
                throws java.text.ParseException
Sets the subject value of the SubjectHeader to the supplied string subject value.

Parameters:
subject - - the new subject value of this header.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the subject value.

getSubject

java.lang.String getSubject()
Gets the subject value of SubjectHeader.

Returns:
subject of SubjectHeader.

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