/** * Get the received date (INTERNALDATE). */ public Date getReceivedDate() throws MessagingException { checkExpunged(); if (receivedDate == null) loadEnvelope(); // have to go to the server for this if (receivedDate == null) return null; else return new Date(receivedDate.getTime()); }
/** * Get matching headers. */ @SuppressWarnings("unchecked") public Enumeration<Header> getMatchingHeaders(String[] names) throws MessagingException { checkExpunged(); loadHeaders(); return super.getMatchingHeaders(names); }
/** * Get all headers. */ @SuppressWarnings("unchecked") public Enumeration<Header> getAllHeaders() throws MessagingException { checkExpunged(); loadHeaders(); return super.getAllHeaders(); }
/** * Get all non-matching headerlines. */ @SuppressWarnings("unchecked") public Enumeration<String> getNonMatchingHeaderLines(String[] names) throws MessagingException { checkExpunged(); loadHeaders(); return super.getNonMatchingHeaderLines(names); }
/** * Get the Flags for this message. */ public synchronized Flags getFlags() throws MessagingException { checkExpunged(); loadFlags(); return super.getFlags(); }
/** * Get matching headers. */ @Override public Enumeration<Header> getMatchingHeaders(String[] names) throws MessagingException { checkExpunged(); loadHeaders(); return super.getMatchingHeaders(names); }
/** * Get the Content-ID. */ public String getContentID() throws MessagingException { checkExpunged(); if (bodyLoaded) return super.getContentID(); loadBODYSTRUCTURE(); return bs.id; }
/** * Get the Content-MD5. */ public String getContentMD5() throws MessagingException { checkExpunged(); if (bodyLoaded) return super.getContentMD5(); loadBODYSTRUCTURE(); return bs.md5; }
/** * Test if the given Flags are set in this message. */ public synchronized boolean isSet(Flags.Flag flag) throws MessagingException { checkExpunged(); loadFlags(); return super.isSet(flag); }
/** * Get the Content-Disposition. */ public String getDisposition() throws MessagingException { checkExpunged(); if (bodyLoaded) return super.getDisposition(); loadBODYSTRUCTURE(); return bs.disposition; }
/** * Get the Content-Transfer-Encoding. */ public String getEncoding() throws MessagingException { checkExpunged(); if (bodyLoaded) return super.getEncoding(); loadBODYSTRUCTURE(); return bs.encoding; }
/** * Get the Message-ID. */ public String getMessageID() throws MessagingException { checkExpunged(); if (bodyLoaded) return super.getMessageID(); loadEnvelope(); return envelope.messageId; }
/** * Get the named header. */ public String getHeader(String name, String delimiter) throws MessagingException { checkExpunged(); // force the header to be loaded by invoking getHeader(name) if (getHeader(name) == null) return null; return headers.getHeader(name, delimiter); }
/** * Get non-matching headers. */ @SuppressWarnings("unchecked") public Enumeration<Header> getNonMatchingHeaders(String[] names) throws MessagingException { checkExpunged(); loadHeaders(); return super.getNonMatchingHeaders(names); }
/** * Get all header-lines. */ @SuppressWarnings("unchecked") public Enumeration<String> getAllHeaderLines() throws MessagingException { checkExpunged(); loadHeaders(); return super.getAllHeaderLines(); }
/** * Get all matching header-lines. */ @SuppressWarnings("unchecked") public Enumeration<String> getMatchingHeaderLines(String[] names) throws MessagingException { checkExpunged(); loadHeaders(); return super.getMatchingHeaderLines(names); }
/** * Get the Content-Disposition. */ @Override public String getDisposition() throws MessagingException { checkExpunged(); if (bodyLoaded) return super.getDisposition(); loadBODYSTRUCTURE(); return bs.disposition; }
/** * Get the Content-Transfer-Encoding. */ @Override public String getEncoding() throws MessagingException { checkExpunged(); if (bodyLoaded) return super.getEncoding(); loadBODYSTRUCTURE(); return bs.encoding; }
/** * Get all headers. */ @Override public Enumeration<Header> getAllHeaders() throws MessagingException { checkExpunged(); loadHeaders(); return super.getAllHeaders(); }
/** * Get the Flags for this message. */ @Override public synchronized Flags getFlags() throws MessagingException { checkExpunged(); loadFlags(); return super.getFlags(); }