gnu.mail.providers.nntp
Class NNTPTransport
public class NNTPTransport
An NNTP transport provider.
This uses an NNTPConnection to handle all the protocol-related
functionality.
void | close() - Close the connection.
|
protected boolean | protocolConnect(String host, int port, String username, String password) - Performs the protocol connection.
|
void | sendMessage(Message message, Address[] addresses) - Post an article.
|
addConnectionListener , close , connect , connect , connect , getURLName , isConnected , notifyConnectionListeners , protocolConnect , removeConnectionListener , setConnected , setURLName , toString |
NNTPTransport
public NNTPTransport(Session session,
URLName url)
Constructor.
session
- the sessionurl
- the connection URL
sendMessage
public void sendMessage(Message message,
Address[] addresses)
throws MessagingException
Post an article.
- sendMessage in interface Transport
message
- a MimeMessageaddresses
- an array of Address(ignored!)