Create an IMAPFolder object. If user supplied their own class, use it. Otherwise, call the constructor. @param fullName the full name of the folder @param separator the separator character for the folder hierarchy @param isNamespace does this name represent a namespace? @return the new IMAPFolde
(String fullName, char separator, Boolean isNamespace)
| 1920 | * @return the new IMAPFolder object |
| 1921 | */ |
| 1922 | protected IMAPFolder newIMAPFolder(String fullName, char separator, |
| 1923 | Boolean isNamespace) { |
| 1924 | IMAPFolder f = null; |
| 1925 | if (folderConstructor != null) { |
| 1926 | try { |
| 1927 | Object[] o = |
| 1928 | { fullName, Character.valueOf(separator), this, isNamespace }; |
| 1929 | f = (IMAPFolder)folderConstructor.newInstance(o); |
| 1930 | } catch (Exception ex) { |
| 1931 | logger.log(Level.FINE, |
| 1932 | "exception creating IMAPFolder class", ex); |
| 1933 | } |
| 1934 | } |
| 1935 | if (f == null) |
| 1936 | f = new IMAPFolder(fullName, separator, this, isNamespace); |
| 1937 | return f; |
| 1938 | } |
| 1939 | |
| 1940 | /** |
| 1941 | * Create an IMAPFolder object. Call the newIMAPFolder method |
no test coverage detected