/** Adds a media format to the media description. * Each element in this Vector should be an String value which matches one of the * a=rtpmap: attribute fields of the media description. * @param mediaFormats the format to add. * @throws SdpException if the vector is null */ public void setMediaFormats(Vector mediaFormats) throws SdpException { if (mediaFormats == null) throw new SdpException("The mediaFormats is null"); this.formats = mediaFormats; }
/** Sets the name of the session originator. * @param user the string username. * @throws SdpException if the parameter is null */ public void setUsername(String user) throws SdpException { if (user == null) throw new SdpException("The user parameter is null"); else { this.username = user; } }
/** Returns the type of the network for this Connection. * @param type to set * @throws SdpException if the type is null */ public void setAddressType(String type) throws SdpException { if (type == null) throw new SdpException("the type is null"); this.addrtype = type; }
/** Sets the stop time of the session. * @param stop start - the start time * @throws SdpException if the date is null */ public void setStop(Date stop) throws SdpException { if (stop == null) throw new SdpException("The date is null"); else { this.stopTime = (stop.getTime() / 1000) + SdpConstants.NTP_CONST; } }
/** Sets the start time of the conference/session. * @param start start - the start time for the session. * @throws SdpException if the date is null */ public void setStart(Date start) throws SdpException { if (start == null) throw new SdpException("The date is null"); else { this.startTime = (start.getTime() / 1000) + SdpConstants.NTP_CONST; } }
/** Sets the protocol over which this media should be transmitted. * @param protocol - the String protocol, e.g. RTP/AVP. * @throws SdpException if the protocol is null */ public void setProtocol(String protocol) throws SdpException { if (protocol == null) throw new SdpException("The protocol is null"); else setProto(protocol); }
/** Sets the value * @param value the - new information. * @throws SdpException if the value is null */ public void setValue(String value) throws SdpException { if (value == null) throw new SdpException("The value is null"); else { setSessionName(value); } }
/** Returns the type of the network for this Connection. * @param type the string network type. * @throws SdpException if the type is null */ public void setAddressType(String type) throws SdpException { if (type == null) throw new SdpException("The type parameter is <0"); else setAddrtype(type); }
/** Sets the number of ports associated with this media description. * @param portCount portCount - the integer port count. * @throws SdpException */ public void setPortCount(int portCount) throws SdpException { if (portCount < 0) throw new SdpException("The port count is < 0"); else setNports(portCount); }
/** Sets the value. * @param value the - new information. * @throws SdpException if the value is null */ public void setValue(String value) throws SdpException { if (value == null) throw new SdpException("The value parameter is null"); else setName(value); }
/** Sets the bandwidth type. * @param type to set * @throws SdpException if the type is null */ public void setType(String type) throws SdpException { if (type == null) throw new SdpException("The type is null"); else setBwtype(type); }
/** Set the value. * @param value to set * @throws SdpException if the value is null */ public void setValue(String value) throws SdpException { if (value == null) throw new SdpException("The value is null"); else { setInformation(value); } }
/** Sets the version. * @param value the - new version value. * @throws SdpException if the value is <=0 */ public void setVersion(int value) throws SdpException { if (value < 0) throw new SdpException("The value is <0"); else setProtoVersion(value); }
/** Sets the unique identity of the session. * @param id the session id. * @throws SdpException if the id is <0 */ public void setSessionId(long id) throws SdpException { if (id < 0) throw new SdpException("The is parameter is <0"); else setSessId(id); }
/** Sets the unique version of the session. * @param version the session version. * @throws SdpException if the version is <0 */ public void setSessionVersion(long version) throws SdpException { if (version < 0) throw new SdpException("The version parameter is <0"); else setSessVersion(version); }
/** Sets the type of the network for this Connection. * @param type to set * @throws SdpException if the type is null */ public void setNetworkType(String type) throws SdpException { if (type == null) throw new SdpException("the type is null"); else setNettype(type); } public Object clone() {
/** Sets the type (audio,video etc) of the media defined by this description. * @param mediaType to set * @throws SdpException if mediaType is null */ public void setMediaType(String mediaType) throws SdpException { if (mediaType == null) throw new SdpException("The mediaType is null"); else setMedia(mediaType); }
/** Sets the value of this attribute. * @param key to set * @throws SdpException if key is null */ public void setKey(String key) throws SdpException { if (key == null) throw new SdpException("The key is null"); else setKeyData(key); } }
/** Sets the type of the network for this Connection. * @param type the string network type. * @throws SdpException if the type is null */ public void setNetworkType(String type) throws SdpException { if (type == null) throw new SdpException("The type parameter is <0"); else setNettype(type); }
/** Set the value. * @param value to set * @throws SdpException if the value is null */ public void setValue(String value) throws SdpException { if (value == null) throw new SdpException("The value is null"); else { emailAddress.setDisplayName(value); } }