Package plugins.Freetalk.Message

Examples of plugins.Freetalk.Message.MessageID


    WoTIdentity myAuthor = new WoTOwnIdentity(WoTIdentity.getIDFromURI(authorRequestSSK), authorRequestSSK, authorInsertSSK, "Nickname");
    myAuthor.initializeTransient(mFreetalk);
    myAuthor.storeAndCommit();
   
    FreenetURI myThreadFreenetURI = new FreenetURI("CHK@7qMS7LklYIhbZ88i0~u97lxrLKS2uxNwZWQOjPdXnJw,IlA~FSjWW2mPWlzWx7FgpZbBErYdLkqie1uSrcN~LbM,AAIA--8");
    MessageID myThreadID = MessageID.construct("afe6519b-7fb2-4533-b172-1f966e79d127" + "@" + myAuthor.getID());
   
    FreenetURI myParentFreenetURI = new FreenetURI("CHK@H4nfdTqgQUQ0CkdPzvrs2F~IIkjOCnfEn~S042jUxuw,wkCrKtmvmYQzuo3f4v2JlB87wJkK0dspmGJ~ivztYP8,AAIA--8");
    MessageID myParentID = MessageID.construct("d5b0dcc4-91cb-4870-8ab9-8588e895fa5d" + "@" + myAuthor.getID());
   
    mMessageFreenetURI = new FreenetURI("CHK@7qMS7LklYIhbZ88i0~u97lxrLKS2uxNwZWQOjPdXnJw,IlA~FSjWW2mPWlzWx7FgpZbBErYdLkqie1uSrcN~LbM,AAIA--8");
    MessageID myMessageID = MessageID.construct("2a3a8e7e-9e53-4978-a8fd-17b2d92d949c" + "@" + myAuthor.getID());
   
    List<MessageList.MessageReference> messageReferences = new ArrayList<MessageList.MessageReference>(2);
    for(Board board : myBoards) {
      messageReferences.add(new MessageList.MessageReference(myThreadID, myThreadFreenetURI, board, CurrentTimeUTC.get()));
      messageReferences.add(new MessageList.MessageReference(myParentID, myParentFreenetURI, board, CurrentTimeUTC.get()));
View Full Code Here


    if(Integer.parseInt(messageElement.getAttribute("Version")) > XML_FORMAT_VERSION)
      throw new Exception("Version " + messageElement.getAttribute("Version") + " > " + XML_FORMAT_VERSION);
   
    // ID
   
    final MessageID messageID = MessageID.construct(messageElement.getAttribute("ID"));
    messageID.throwIfAuthorDoesNotMatch(messageList.getAuthor()); // Double check, the message constructor should also do this.
   
    // Date
   
    final Date messageDate;
    synchronized(mDateFormat) {
View Full Code Here

    for(int messageIndex = 0; messageIndex < messageElements.getLength(); ++messageIndex) {
      final Element messageElement = (Element)messageElements.item(messageIndex);
     
      // ID
     
      final MessageID messageID = MessageID.construct(messageElement.getAttribute("ID"));
      messageID.throwIfAuthorDoesNotMatch(author); // Duplicate check to prevent severe breakage, also done in message list constructor.
     
      // URI
     
      final FreenetURI messageURI = new FreenetURI(messageElement.getAttribute("FreenetURI")); // TODO: FreenetURI won't throw if too long
     
View Full Code Here

TOP

Related Classes of plugins.Freetalk.Message.MessageID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.