| java.lang.Object javax.net.SocketFactory org.apache.james.transport.mailets.RemoteDeliverySocketFactory
RemoteDeliverySocketFactory | public class RemoteDeliverySocketFactory extends SocketFactory (Code) | | It is used by RemoteDelivery in order to make possible to bind the client
socket to a specific ip address.
This is not a nice solution because the ip address must be shared by all
RemoteDelivery instances. It would be better to modify JavaMail
(current version 1.3) to support a corresonding property, e.g.
mail.smtp.bindAdress.
This used to not extend javax.net.SocketFactory descendant, because
1. it was not necessary because JavaMail 1.2 uses reflection when accessing
this class;
2. it was not desirable because it would require java 1.4.
But since James 2.3.0a1:
1. we require Java 1.4 so the dependency on SocketFactory is
not really an issue;
2. Javamail 1.4 cast the object returned by getDefault to SocketFactory and
fails to create the socket if we don't extend SocketFactory.
Note: Javamail 1.4 should correctly support mail.smtp.localaddr so we could
probably get rid of this class and simply add that property to the Session.
|
createSocket | public Socket createSocket() throws IOException(Code) | | the same as the similarly named javax.net.SocketFactory operation.
Just to be safe, it is not used by JavaMail 1.3.
This is the only method used by JavaMail 1.4.
|
createSocket | public Socket createSocket(String host, int port) throws IOException, UnknownHostException(Code) | | the same as the similarly named javax.net.SocketFactory operation.
This is the one which is used by JavaMail 1.3.
This is not used by JavaMail 1.4.
|
createSocket | public Socket createSocket(InetAddress host, int port) throws IOException(Code) | | the same as the similarly named javax.net.SocketFactory operation.
Just to be safe, it is not used by JavaMail 1.3.
This is not used by JavaMail 1.4.
|
createSocket | public Socket createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException(Code) | | the same as the similarly named javax.net.SocketFactory operation.
Just to be safe, it is not used by JavaMail 1.3.
This is not used by JavaMail 1.4.
|
getDefault | public static SocketFactory getDefault()(Code) | | the same as the similarly named javax.net.SocketFactory operation.
|
setBindAdress | static void setBindAdress(String addr) throws UnknownHostException(Code) | | Parameters: addr - the ip address or host name the delivery socket will bind to |
Methods inherited from javax.net.SocketFactory | public Socket createSocket() throws IOException(Code)(Java Doc) abstract public Socket createSocket(String host, int port) throws IOException, UnknownHostException(Code)(Java Doc) abstract public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException(Code)(Java Doc) abstract public Socket createSocket(InetAddress host, int port) throws IOException(Code)(Java Doc) abstract public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException(Code)(Java Doc) public static SocketFactory getDefault()(Code)(Java Doc)
|
|
|