public class NNTPTransport extends Transport
| Constructor and Description |
|---|
NNTPTransport(Session session,
URLName url)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
protected boolean |
protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Performs the protocol connection.
|
void |
sendMessage(Message message,
Address[] addresses)
Post an article.
|
addTransportListener, notifyTransportListeners, removeTransportListener, send, send, send, sendaddConnectionListener, connect, connect, connect, connect, getURLName, isConnected, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toStringprotected boolean protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
throws MessagingException
protocolConnect in class Servicehost - the name of the host to connect toport - the port to use (-1 for the default port)username - the usernamepassword - the passwordAuthenticationFailedException - on authentication failureMessagingException - for non-authentication failuresNNTPStore.protocolConnect(java.lang.String, int, java.lang.String, java.lang.String)public void close()
throws MessagingException
close in class ServiceMessagingExceptionNNTPStore.close()public void sendMessage(Message message, Address[] addresses) throws MessagingException
sendMessage in class Transportmessage - a MimeMessageaddresses - an array of Address(ignored!)SendFailedException - if the send failed because of
invalid addressesMessagingException - if the transport is not connected