Package net.messagevortex.transport.smtp
Class SmtpReceiver
java.lang.Object
net.messagevortex.transport.smtp.SmtpReceiver
- All Implemented Interfaces:
SocketListener
-
Constructor Summary
ConstructorsConstructorDescriptionSmtpReceiver(InetSocketAddress address, SecurityContext secContext, TransportReceiver lreceiver) creates a local SMTP server. -
Method Summary
Modifier and TypeMethodDescriptionintgetPort()voidfinal TransportReceiversetTransportReceiver(TransportReceiver lreceiver) Sets the belnding layer to be used.voidshutdown()
-
Constructor Details
-
SmtpReceiver
public SmtpReceiver(InetSocketAddress address, SecurityContext secContext, TransportReceiver lreceiver) throws IOException creates a local SMTP server.
- Parameters:
address- the adress to be boundsecContext- the security context to be usedlreceiver- the blending layer to be used- Throws:
IOException- if interfaces cannot be bound
-
-
Method Details
-
gotConnect
- Specified by:
gotConnectin interfaceSocketListener
-
getTransportReceiver
-
setTransportReceiver
Sets the belnding layer to be used.
- Parameters:
lreceiver- the blending layer to be set- Returns:
- the previously set blending layer
-
shutdown
public void shutdown() -
getPort
public int getPort()
-