1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.transport.email.config; |
11 | |
|
12 | |
import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler; |
13 | |
import org.mule.config.spring.parsers.MuleDefinitionParserConfiguration; |
14 | |
import org.mule.endpoint.URIBuilder; |
15 | |
import org.mule.transport.email.ImapConnector; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | 0 | public class ImapNamespaceHandler extends AbstractMuleNamespaceHandler |
22 | |
{ |
23 | |
|
24 | |
public void init() |
25 | |
{ |
26 | 0 | registerStandardTransportEndpoints(ImapConnector.IMAP, URIBuilder.USERHOST_ATTRIBUTES); |
27 | |
|
28 | 0 | MuleDefinitionParserConfiguration parser = registerConnectorDefinitionParser(ImapConnector.class); |
29 | 0 | parser.addMapping("defaultProcessMessageAction", EmailNamespaceHandler.DEFAULT_PROCESS_MESSAGE_ACTION); |
30 | 0 | } |
31 | |
|
32 | |
} |