FileDocCategorySizeDatePackage
SessionNameField.javaAPI DocphoneME MR2 API (J2ME)2717Wed May 02 18:00:42 BST 2007gov.nist.javax.sdp.fields

SessionNameField

public class SessionNameField extends SDPField
Session name field interface.

Fields Summary
protected String
sessionName
Session name.
Constructors Summary
public SessionNameField()
Default constructor.

	super(SDPFieldNames.SESSION_NAME_FIELD);
    
Methods Summary
public java.lang.Objectclone()
Copies the current instance.

return
the copy of this object

	SessionNameField snf = new SessionNameField();
	snf.sessionName = this.sessionName;
	return snf;
    
public java.lang.Stringencode()
Gets the string encoded version of this object.

return
the session name
since
v1.0

	return SESSION_NAME_FIELD + sessionName + Separators.NEWLINE;
    
public java.lang.StringgetSessionName()
Gets the session name .

return
the session name

 return sessionName; 
public java.lang.StringgetValue()
Returns the value.

throws
SdpParseException if a parsing error occurs
return
the value

	return getSessionName();
    
public voidsetSessionName(java.lang.String s)
Sets the session name member .

param
s the new session name

	sessionName = s;
    
public voidsetValue(java.lang.String value)
Sets the value.

param
value the new information.
throws
SdpException if the value is null

	if (value == null)
	    throw new SdpException("The value is null");
	else {
	    setSessionName(value);
	}