| java.lang.Object net.jforum.api.integration.mail.pop.MessageId
MessageId | public class MessageId (Code) | | Represents the In-Reply-To and Message-ID mail header.
author: Rafael Steil version: $Id: MessageId.java,v 1.4 2006/10/09 03:05:54 rafaelsteil Exp $ |
Method Summary | |
public static String | buildInReplyTo(Topic topic) Constructs the In-Reply-To header.
The form is "<topicFirstPostId.topicId.forumId.randomNumber@jforum>".
Parameters: topic - The topic we're replying to. | public static String | buildMessageId(int postId, int topicId, int forumId) Constructs the Message-ID header. | public int | getTopicId() Returns the topic id this header holds. | public static MessageId | parse(String header) |
buildInReplyTo | public static String buildInReplyTo(Topic topic)(Code) | | Constructs the In-Reply-To header.
The form is "<topicFirstPostId.topicId.forumId.randomNumber@jforum>".
Parameters: topic - The topic we're replying to. If should have at least thevalues for Topic.getFirstPostId, Topic.getIdand Topic.getForumId the In-Reply-To header |
buildMessageId | public static String buildMessageId(int postId, int topicId, int forumId)(Code) | | Constructs the Message-ID header.
The form is "<postId.topicId.forumId.randomNumber@jforum>".
Parameters: postId - the post id of this message Parameters: topicId - the topic id of this message Parameters: forumId - the forum id of this message the Message-ID header |
getTopicId | public int getTopicId()(Code) | | Returns the topic id this header holds.
the topic id represented by this instance |
parse | public static MessageId parse(String header)(Code) | | Parses the header, extracting the information it holds
Parameters: header - the header's contents to parse the header information parsed |
|
|