ePOST API

rice.email.proxy.testing
Class Hammer

java.lang.Object
  extended by rice.email.proxy.testing.Hammer

public class Hammer
extends java.lang.Object


Constructor Summary
Hammer()
           
 
Method Summary
static javax.mail.Folder connect(javax.mail.Session session, boolean flush)
           
static void copyMessage(javax.mail.Folder src, javax.mail.Message msg, javax.mail.Folder target)
           
static void copyMessage(javax.mail.Session sess, javax.mail.Folder root)
           
static void createFolder(javax.mail.Folder parent, java.lang.String name)
           
static void createFolder(javax.mail.Session sess, javax.mail.Folder root)
           
static void createMessage(javax.mail.Folder parent, javax.mail.Message msg)
           
static void createMessage(javax.mail.Session sess, javax.mail.Folder root)
           
static void deleteFolder(javax.mail.Folder which)
           
static void deleteFolder(javax.mail.Session sess, javax.mail.Folder root)
           
static void deleteMessage(javax.mail.Folder parent, javax.mail.Message msg)
           
static void deleteMessage(javax.mail.Session sess, javax.mail.Folder root)
           
static void main(java.lang.String[] args)
           
static javax.mail.Message makeMessage(javax.mail.Session sess)
           
static java.lang.String messageHash(javax.mail.Message m)
           
static void printAddresses(java.io.PrintWriter pw, javax.mail.Address[] addresses)
           
static javax.mail.Message randomMessage(javax.mail.Folder f)
           
static javax.mail.Folder selectFolder(javax.mail.Folder root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hammer

public Hammer()
Method Detail

createFolder

public static void createFolder(javax.mail.Folder parent,
                                java.lang.String name)
                         throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

createFolder

public static void createFolder(javax.mail.Session sess,
                                javax.mail.Folder root)
                         throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

deleteFolder

public static void deleteFolder(javax.mail.Folder which)
                         throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

deleteFolder

public static void deleteFolder(javax.mail.Session sess,
                                javax.mail.Folder root)
                         throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

createMessage

public static void createMessage(javax.mail.Folder parent,
                                 javax.mail.Message msg)
                          throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

createMessage

public static void createMessage(javax.mail.Session sess,
                                 javax.mail.Folder root)
                          throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

deleteMessage

public static void deleteMessage(javax.mail.Folder parent,
                                 javax.mail.Message msg)
                          throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

deleteMessage

public static void deleteMessage(javax.mail.Session sess,
                                 javax.mail.Folder root)
                          throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

randomMessage

public static javax.mail.Message randomMessage(javax.mail.Folder f)
                                        throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

copyMessage

public static void copyMessage(javax.mail.Folder src,
                               javax.mail.Message msg,
                               javax.mail.Folder target)
                        throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

copyMessage

public static void copyMessage(javax.mail.Session sess,
                               javax.mail.Folder root)
                        throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

selectFolder

public static javax.mail.Folder selectFolder(javax.mail.Folder root)
                                      throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

makeMessage

public static javax.mail.Message makeMessage(javax.mail.Session sess)
                                      throws java.io.UnsupportedEncodingException,
                                             javax.mail.MessagingException
Throws:
java.io.UnsupportedEncodingException
javax.mail.MessagingException

messageHash

public static java.lang.String messageHash(javax.mail.Message m)
                                    throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

printAddresses

public static void printAddresses(java.io.PrintWriter pw,
                                  javax.mail.Address[] addresses)

connect

public static javax.mail.Folder connect(javax.mail.Session session,
                                        boolean flush)
                                 throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

main

public static void main(java.lang.String[] args)
                 throws javax.mail.MessagingException,
                        java.io.IOException
Parameters:
args -
Throws:
javax.mail.MessagingException
java.io.IOException

ePOST API

Copyright © 2001-2005 - Rice Pastry.