org.jenkinsci.plugins.pollmailboxtrigger.mail.utils
Class Stringify

java.lang.Object
  extended by org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.Stringify

public abstract class Stringify
extends java.lang.Object


Field Summary
static java.lang.String BLANK
           
static java.lang.String DATE_FORMAT_TEXT
           
static java.lang.String MULTIPART_ALTERNATIVE
           
static java.lang.String MULTIPART_WILDCARD
           
static java.lang.String NEWLINE
           
static java.lang.String TEXT_HTML
           
static java.lang.String TEXT_PLAIN
           
static java.lang.String TEXT_WILDCARD
           
 
Constructor Summary
Stringify()
           
 
Method Summary
static
<A> java.lang.String
stringify(A[] array)
          Converts the given object to a String.
static
<A> java.lang.String
stringify(A[] array, java.lang.String delimiter)
          Converts the given object to a String.
static java.lang.String stringify(javax.mail.Address[] addresses)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Date date)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Enumeration allHeaders)
          Converts the given object to a String.
static java.lang.String stringify(javax.mail.Flags.Flag flag)
          Converts the given object to a String.
static java.lang.String stringify(javax.mail.Flags flags)
          Converts the given object to a String.
static java.lang.String stringify(javax.mail.Folder folder)
          Converts the given object to a String.
static java.lang.String stringify(javax.mail.Header content)
          Converts the given object to a String.
static java.lang.String stringify(int messageNumber)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Iterator<? extends java.util.Map.Entry<?,?>> iterator, java.lang.String pKeyValueDelimiter, java.lang.String pDelimiter)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Iterator iterator, java.lang.String pDelimiter)
          Converts the given object to a String.
static java.lang.String stringify(java.util.List list)
          Converts the given object to a String.
static java.lang.String stringify(java.util.List list, java.lang.String delimiter)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Map.Entry content, java.lang.String keyValueDelimiter)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Map content)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Map<?,?> content, java.lang.String keyValueDelimiter, java.lang.String delimiter)
          Converts the given object to a String.
static java.lang.String stringify(java.lang.Object content)
          Converts the given object to a String.
static java.lang.String stringify(javax.mail.Part part)
          Get text from all parts of the email.
static java.lang.String stringify(java.util.Set list)
          Converts the given object to a String.
static java.lang.String stringify(java.util.Set list, java.lang.String delimiter)
          Converts the given object to a String.
static java.lang.String stringify(java.lang.String message)
          Converts the given object to a String.
static java.lang.String stringify(java.lang.Throwable t)
          Converts the given object to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT_TEXT

public static final java.lang.String DATE_FORMAT_TEXT
See Also:
Constant Field Values

TEXT_WILDCARD

public static final java.lang.String TEXT_WILDCARD
See Also:
Constant Field Values

TEXT_HTML

public static final java.lang.String TEXT_HTML
See Also:
Constant Field Values

TEXT_PLAIN

public static final java.lang.String TEXT_PLAIN
See Also:
Constant Field Values

MULTIPART_WILDCARD

public static final java.lang.String MULTIPART_WILDCARD
See Also:
Constant Field Values

MULTIPART_ALTERNATIVE

public static final java.lang.String MULTIPART_ALTERNATIVE
See Also:
Constant Field Values

NEWLINE

public static final java.lang.String NEWLINE
See Also:
Constant Field Values

BLANK

public static final java.lang.String BLANK
See Also:
Constant Field Values
Constructor Detail

Stringify

public Stringify()
Method Detail

stringify

public static java.lang.String stringify(java.lang.Throwable t)
Converts the given object to a String.

Parameters:
t - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(java.lang.String message)
Converts the given object to a String.

Parameters:
message - the object to convert to a String.
Returns:
a String

stringify

public static <A> java.lang.String stringify(A[] array)
Converts the given object to a String.

Type Parameters:
A - the type of the array
Parameters:
array - the object to convert to a String.
Returns:
a String

stringify

public static <A> java.lang.String stringify(A[] array,
                                             java.lang.String delimiter)
Converts the given object to a String.

Type Parameters:
A -
Parameters:
array - the object to convert to a String.
delimiter - a delimiter.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.List list)
Converts the given object to a String.

Parameters:
list - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.List list,
                                         java.lang.String delimiter)
Converts the given object to a String.

Parameters:
list - the object to convert to a String.
delimiter - a delimiter.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Set list)
Converts the given object to a String.

Parameters:
list - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Set list,
                                         java.lang.String delimiter)
Converts the given object to a String.

Parameters:
list - the object to convert to a String.
delimiter - a delimiter.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Iterator iterator,
                                         java.lang.String pDelimiter)
Converts the given object to a String.

Parameters:
iterator - the object to convert to a String.
pDelimiter - a delimiter.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Iterator<? extends java.util.Map.Entry<?,?>> iterator,
                                         java.lang.String pKeyValueDelimiter,
                                         java.lang.String pDelimiter)
Converts the given object to a String.

Parameters:
iterator - the object to convert to a String.
pKeyValueDelimiter - a delimiter.
pDelimiter - a delimiter.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Date date)
Converts the given object to a String.

Parameters:
date - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(int messageNumber)
Converts the given object to a String.

Parameters:
messageNumber - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Enumeration allHeaders)
Converts the given object to a String.

Parameters:
allHeaders - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Map content)
Converts the given object to a String.

Parameters:
content - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Map<?,?> content,
                                         java.lang.String keyValueDelimiter,
                                         java.lang.String delimiter)
Converts the given object to a String.

Parameters:
content - the object to convert to a String.
keyValueDelimiter - a delimiter.
delimiter - a delimiter.
Returns:
a String

stringify

public static java.lang.String stringify(java.util.Map.Entry content,
                                         java.lang.String keyValueDelimiter)
Converts the given object to a String.

Parameters:
content - the object to convert to a String.
keyValueDelimiter - a delimiter.
Returns:
a String

stringify

public static java.lang.String stringify(java.lang.Object content)
Converts the given object to a String.

Parameters:
content - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(javax.mail.Header content)
Converts the given object to a String.

Parameters:
content - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(javax.mail.Address[] addresses)
Converts the given object to a String.

Parameters:
addresses - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(javax.mail.Part part)
Get text from all parts of the email. Loosely based on oracle.com.

Parameters:
part - - the mail part to convert to string.
Returns:
a String

stringify

public static java.lang.String stringify(javax.mail.Flags flags)
Converts the given object to a String.

Parameters:
flags - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(javax.mail.Flags.Flag flag)
Converts the given object to a String.

Parameters:
flag - the object to convert to a String.
Returns:
a String

stringify

public static java.lang.String stringify(javax.mail.Folder folder)
Converts the given object to a String.

Parameters:
folder - the object to convert to a String.
Returns:
a String