public void sendFileInfo(OneToOneFileTransferImpl fileTransfer,String fileTransferId,String fileInfo,boolean displayedReportEnabled,boolean deliveredReportEnabled) throws NetworkException {
  String networkContent;
  long timestamp=System.currentTimeMillis();
  long timestampSent=timestamp;
  mMessagingLog.setFileTransferTimestamps(fileTransferId,timestamp,timestampSent);
  if (displayedReportEnabled) {
    networkContent=ChatUtils.buildCpimMessageWithImdn(ChatUtils.ANONYMOUS_URI,ChatUtils.ANONYMOUS_URI,fileTransferId,fileInfo,FileTransferHttpInfoDocument.MIME_TYPE,timestampSent);
  }
 else   if (deliveredReportEnabled) {
    networkContent=ChatUtils.buildCpimMessageWithoutDisplayedImdn(ChatUtils.ANONYMOUS_URI,ChatUtils.ANONYMOUS_URI,fileTransferId,fileInfo,FileTransferHttpInfoDocument.MIME_TYPE,timestampSent);
  }
 else {
    networkContent=ChatUtils.buildCpimMessage(ChatUtils.ANONYMOUS_URI,ChatUtils.ANONYMOUS_URI,fileInfo,FileTransferHttpInfoDocument.MIME_TYPE,timestampSent);
  }
  sendDataChunks(IdGenerator.generateMessageID(),networkContent,CpimMessage.MIME_TYPE,MsrpSession.TypeMsrpChunk.HttpFileSharing);
  fileTransfer.onFileInfoDequeued(getRemoteContact());
}

public void sendFileInfo ( OneToOneFileTransferImpl fileTransfer , String fileTransferId , String fileInfo , boolean displayedReportEnabled , boolean deliveredReportEnabled ) throws NetworkException { String networkContent ; long timestamp = System . currentTimeMillis ( ) ; long timestampSent = timestamp ; mMessagingLog . setFileTransferTimestamps ( fileTransferId , timestamp , timestampSent ) ; if ( displayedReportEnabled ) { networkContent = ChatUtils . buildCpimMessageWithImdn ( ChatUtils . ANONYMOUS_URI , ChatUtils . ANONYMOUS_URI , fileTransferId , fileInfo , FileTransferHttpInfoDocument . MIME_TYPE , timestampSent ) ; } else if ( deliveredReportEnabled ) { networkContent = ChatUtils . buildCpimMessageWithoutDisplayedImdn ( ChatUtils . ANONYMOUS_URI , ChatUtils . ANONYMOUS_URI , fileTransferId , fileInfo , FileTransferHttpInfoDocument . MIME_TYPE , timestampSent ) ; } else { networkContent = ChatUtils . buildCpimMessage ( ChatUtils . ANONYMOUS_URI , ChatUtils . ANONYMOUS_URI , fileInfo , FileTransferHttpInfoDocument . MIME_TYPE , timestampSent ) ; } sendDataChunks ( IdGenerator . generateMessageID ( ) , networkContent , CpimMessage . MIME_TYPE , MsrpSession . TypeMsrpChunk . HttpFileSharing ) ; fileTransfer . onFileInfoDequeued ( getRemoteContact ( ) ) ; }
send file info within a 1 - 1 chat session
