JAIN-SIP 2.0 API

javax.sip.header
Interface SubjectHeader

All Superinterfaces:
Cloneable, Header, 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?

Since:
1.1
Version:
2.0
Author:
Oracle inc., NIST

Field Summary
static String NAME
          Name of SubjectHeader
 
Method Summary
 String getSubject()
          Gets the subject value of SubjectHeader.
 void setSubject(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, getValue, hashCode, toString
 

Field Detail

NAME

static final String NAME
Name of SubjectHeader

See Also:
Constant Field Values
Method Detail

setSubject

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

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

getSubject

String getSubject()
Gets the subject value of SubjectHeader.

Returns:
subject of SubjectHeader.

JAIN-SIP 2.0 API


See conditions of use.
Submit a bug report or feature request.