|
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||
°³¿ä: ³»ºÎ Ŭ·¡½º | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼Òµå |
UIDFolder
ÀÎÅÍÆäÀ̽º´Â, ¡¸disconnected¡¹¸ðµåÀÇ Á¶ÀÛÀ» ¼Æ÷Æ®ÇÏ´Â Folder °¡ ½ÇÀåÇÕ´Ï´Ù. ±×·¯ÇÑ ½ÇÀå¿¡¼´Â, Æú´õÁßÀÇ ¸Þ¼¼Áö¿¡ ´ëÇØ¼ ÀÏÀÇÀÇ ID ¸¦ Á¦°øÇÕ´Ï´Ù. ÀÌ ÀÎÅÍÆäÀ̽º´Â, disconnected Á¶ÀÛÀ» ¼Æ÷Æ®Çϱâ À§ÇÑ IMAP ¸ðµ¨À» º£À̽º·Î Çϰí ÀÖ½À´Ï´Ù.
UID (ÀÏÀÇÀÇ ID)´Â Á¤ÀÇ long Ä¡·Î, ƯÁ¤ÀÇ Æú´õÁßÀÇ °¢ ¸Þ¼¼Áö¿¡ ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. UID ´Â, ¸ÞÀÏ ¹Ú½º¿¡ ´ëÇØ ¹Ýµå½Ã½Â¼ø¿¡ ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. Áï, °¢ ¸Þ¼¼Áö°¡ ¸ÞÀÏ ¹Ú½º¿¡ Ãß°¡µÉ ¶§, ±âÁ¸ÀÇ ¸Þ¼¼Áöº¸´Ù Å« UID ¸¦ ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. UID ´Â ¼¼¼ÇÀ» °ÉÃÄ Áö¼ÓÇÕ´Ï´Ù. À̰Ϳ¡ ÀÇÇØ Ŭ¶óÀÌ¾ðÆ®´Â, ÀüÀÇ ¼¼¼Ç »óŸ¦ ¼¹ö¿Í ÀçÂ÷ µ¿±â¸¦ ÃëÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.
¸ðµç ¸ÞÀÏ ¹Ú½º¿Í °ü·ÃÁöÀ» ¼ö ÀÖ´Â °ÍÀº, UID ÀÇ Å¸´ç¼ºÄ¡ÀÔ´Ï´Ù. ÀüÀÇ ¼¼¼ÇÀÇ UID ¸¦ ÀÌ ¼¼¼ÇÀ¸·Î °è¼ÓÇØ »ç¿ëÇÒ ¼ö ¾ø´Â °æ¿ì, UID Ÿ´ç¼ºÄ¡´Â ÀüÀÇ ¼¼¼ÇÀ¸·Î »ç¿ëµÈ °ªº¸´ÙŬ Çʿ䰡 ÀÖ½À´Ï´Ù.
»ó¼¼ÇÑ °Í¿¡ ´ëÇÏ¿©´Â, RFC 2060 http://www.ietf.org/rfc/rfc2060.txt ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
³»ºÎ Ŭ·¡½ºÀÇ °³¿ä | |
static class |
UIDFolder.FetchProfileItem
UID ¸¦ ²¨³»´Â ÆäÄ¡ ÇÁ·ÎÆÄÀÏ Ç׸ñÀÔ´Ï´Ù. |
ÇʵåÀÇ °³¿ä | |
static long |
LASTUID
À̰ÍÀº, ÀÌ Æú´õÁßÀÇ ¸¶Áö¸· UID ¸¦ ³ªÅ¸³»±â À§Çؼ(¶§¹®¿¡), getMessages(start, end) ÁßÀÇ end ÆÄ¶ó¹ÌÅͷμ »ç¿ëÇÒ ¼ö Àִ Ư¼öÇÑ °ªÀÔ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
Message |
getMessageByUID (long uid)
ÁöÁ¤µÈ UID ¿¡ ´ëÀÀÇÏ´Â Message ¸¦ ÃëµæÇÕ´Ï´Ù. |
Message [] |
getMessagesByUID (long[] uids)
UID ÀÇ ¹è¿¿¡ ÀÇÇØ ÁöÁ¤µÈ Message ¸¦ ÃëµæÇÕ´Ï´Ù. |
Message [] |
getMessagesByUID (long start,
long end)
¹üÀ§°¡ ÁöÁ¤µÈ Message ¸¦ ÃëµæÇÕ´Ï´Ù. |
long |
getUID (Message message)
ÁöÁ¤µÈ ¸Þ¼¼ÁöÀÇ UID ¸¦ ÃëµæÇÕ´Ï´Ù. |
long |
getUIDValidity ()
ÀÌ Æú´õ¿¡ °ü·ÃÇÑ UIDValidity Ä¡¸¦ µ¹·ÁÁÝ´Ï´Ù. |
ÇʵåÀÇ »ó¼¼ |
public static final long LASTUID
getMessages(start, end)
ÁßÀÇ end
ÆÄ¶ó¹ÌÅͷμ »ç¿ëÇÒ ¼ö Àִ Ư¼öÇÑ °ªÀÔ´Ï´Ù. getMessagesByUID(long, long)
¸Þ¼ÒµåÀÇ »ó¼¼ |
public long getUIDValidity() throws MessagingException
ÀϹÝÀûÀ¸·Î Ŭ¶óÀÌ¾ðÆ®´Â, ÀÌ °ªÀ», ÀüÀÇ ¼¼¼ÇÀ¸·Î º¸Á¸µÈ UIDValidity Ä¡¿Í ºñ±³ÇØ, ij½¬µÈ UID °¡ ¸ðµÎ À¯È¿ÇÑ °ÍÀ» È®ÀÎÇÕ´Ï´Ù.
public Message getMessageByUID(long uid) throws MessagingException
null
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. uid
- Èñ¸ÁÇÏ´Â ¸Þ¼¼ÁöÀÇ UIDnull
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. MessagingException
- public Message [] getMessagesByUID(long start, long end) throws MessagingException
end
ÆÄ¶ó¹ÌÅͷμ »ç¿ë °¡´ÉÇÕ´Ï´Ù. start
- °³½Ã UIDend
- Á¾·á UIDMessagingException
- LASTUID
public Message [] getMessagesByUID(long[] uids) throws MessagingException
null
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
µ¹·ÁÁÖ¾îÁö´Â ¹è¿ÀÇ »çÀÌÁî´Â, ÁöÁ¤µÈ UID ÀÇ ¹è¿ÀÇ »çÀÌÁî¿Í °°°Ô µË´Ï´Ù. ¶Ç, ¹«È¿ÀÎ UID ¸¦ ³ªÅ¸³»±â À§Çؼ(¶§¹®¿¡),null
¿£Æ®¸®°¡ ¹è¿Áß¿¡ Á¸ÀçÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
uids
- UID ÀÇ ¹è¿MessagingException
- public long getUID(Message message) throws MessagingException
message
- ÀÌ Æú´õ·ÎºÎÅÍÀÇ ¸Þ¼¼Áöjava.util.NoSuchElementException
- ÁöÁ¤µÈ Message °¡ ÀÌ Folder Áß¿¡ ¾ø´Â °æ¿ì
|
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||
°³¿ä: ³»ºÎ Ŭ·¡½º | Çʵå | constructor¡¡ ¡¡ | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor¡¡ ¡¡ | ¸Þ¼Òµå |