コード例 #1
0
ファイル: SdpFactory.java プロジェクト: jiafu1115/jain-sip-1
 /**
  * Returns TimeDescription object with the specified properties.
  *
  * @param start start time.
  * @param stop stop time.
  * @throws SdpException if the parameters are null
  * @return TimeDescription
  */
 public TimeDescription createTimeDescription(Date start, Date stop) throws SdpException {
   TimeDescriptionImpl timeDescriptionImpl = new TimeDescriptionImpl();
   TimeField timeImpl = new TimeField();
   timeImpl.setStart(start);
   timeImpl.setStop(stop);
   timeDescriptionImpl.setTime(timeImpl);
   return timeDescriptionImpl;
 }
コード例 #2
0
ファイル: SdpFactory.java プロジェクト: jiafu1115/jain-sip-1
 /**
  * Returns a Time specification with the specified start and stop times.
  *
  * @param start start time
  * @param stop stop time
  * @throws SdpException if the parameters are null
  * @return a Time specification with the specified start and stop times.
  */
 public Time createTime(Date start, Date stop) throws SdpException {
   TimeField timeImpl = new TimeField();
   timeImpl.setStart(start);
   timeImpl.setStop(stop);
   return timeImpl;
 }