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