Examples of ThreadMessageID


Examples of org.eclipse.ecf.internal.provider.phpbb.identity.ThreadMessageID

  }

  public ThreadMessage parseRequestedMessage(final ThreadMessageID id, final CharSequence seq) throws BBException {
    final ThreadMessageFactory tmf = new ThreadMessageFactory();
    // lastRead = -1 the one we want
    ThreadMessageID lastReadId = null;
    try {
      lastReadId = (ThreadMessageID) tmf.createBBObjectId(namespace, baseURL, String.valueOf(id.getLongValue() - 1));
    } catch (final IDCreateException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.phpbb.identity.ThreadMessageID

    Matcher m;
    m = PAT_MSG_POSTID_USERNAME.matcher(seq);
    if (m.find()) {
      final ThreadMessageFactory tmf = new ThreadMessageFactory();
      String idStr = m.group(1);
      ThreadMessageID id = null;
      try {
        id = (ThreadMessageID) tmf.createBBObjectId(namespace, baseURL, idStr);
      } catch (final IDCreateException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
      }
      if (lastReadId == null || id.getLongValue() > lastReadId.getLongValue()) {
        final String uname = new String(m.group(2));
        msg = new ThreadMessage(id, null);
        m = PAT_MSG_TIMESTAMP.matcher(seq);
        if (m.find()) {
          msg.timePosted = new Date(parseTimestamp(new String(m.group(1))).longValue());
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.phpbb.identity.ThreadMessageID

public class ThreadMessageFactory implements IBBObjectFactory {
  public ID createBBObjectId(Namespace namespace, String stringValue)
      throws IDCreateException {
    try {
      return new ThreadMessageID((PHPBBNamespace) namespace, new URI(
          stringValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.phpbb.identity.ThreadMessageID

  }

  public ID createBBObjectId(Namespace namespace, URL baseURL, String longValue)
      throws IDCreateException {
    try {
      return new ThreadMessageID((PHPBBNamespace) namespace, baseURL,
          Long.parseLong(longValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.vbulletin.identity.ThreadMessageID

    ThreadMessage msg;
    List<ThreadMessage> messages = new ArrayList<ThreadMessage>();
    m = PAT_MSG.matcher(seq);
    while (m.find()) {
      ThreadMessageFactory tmf = new ThreadMessageFactory();
      ThreadMessageID id = null;
      try {
        id = (ThreadMessageID) tmf.createBBObjectId(namespace, baseURL,
            m.group(1));
      } catch (NumberFormatException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (IDCreateException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      if (lastReadId == null
          || id.getLongValue() > ((ThreadMessageID) lastReadId)
              .getLongValue()) {
        String msgSrc = m.group(2);
        msg = parseMessage2(id, msgSrc);
        if (msg != null) {
          if (desc) {
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.vbulletin.identity.ThreadMessageID

public class ThreadMessageFactory implements IBBObjectFactory {
  public ID createBBObjectId(Namespace namespace, String stringValue)
      throws IDCreateException {
    try {
      return new ThreadMessageID((VBNamespace) namespace, new URI(
          stringValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.vbulletin.identity.ThreadMessageID

  }

  public ID createBBObjectId(Namespace namespace, URL baseURL, String longValue)
      throws IDCreateException {
    try {
      return new ThreadMessageID((VBNamespace) namespace, baseURL,
          Long.parseLong(longValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.