01: /*
02: * $Id: ImapsSocketFactory.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.transport.email;
12:
13: import org.mule.api.security.tls.TlsPropertiesSocketFactory;
14:
15: import javax.net.SocketFactory;
16:
17: /**
18: * A socket factor that reads "indirect" configuration (see {@link org.mule.api.security.tls.TlsConfiguration})
19: * for IMAPS from System properties.
20: */
21: public class ImapsSocketFactory extends TlsPropertiesSocketFactory {
22:
23: public static final String MULE_IMAPS_NAMESPACE = "mule.email.imaps";
24:
25: public ImapsSocketFactory() {
26: super (true, MULE_IMAPS_NAMESPACE);
27: }
28:
29: public static SocketFactory getDefault() {
30: return new ImapsSocketFactory();
31: }
32:
33: }
|