Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.mail.Service
javax.mail.Transport
gnu.mail.providers.nntp.NNTPTransport
public class NNTPTransport
extends Transport
Field Summary |
Constructor Summary | |
|
Method Summary | |
void |
|
protected boolean |
|
void |
|
Methods inherited from class javax.mail.Transport | |
addTransportListener , notifyTransportListeners , removeTransportListener , send , send , sendMessage |
Methods inherited from class javax.mail.Service | |
addConnectionListener , close , connect , connect , connect , getURLName , isConnected , notifyConnectionListeners , protocolConnect , removeConnectionListener , setConnected , setURLName , toString |
public NNTPTransport(Session session, URLName url)
Constructor.
- Parameters:
session
- the sessionurl
- the connection URL
public void close() throws MessagingException
Close the connection.
- Overrides:
- close in interface Service
- See Also:
NNTPStore.close()
protected boolean protocolConnect(String host, int port, String username, String password) throws MessagingException
Performs the protocol connection.
- Overrides:
- protocolConnect in interface Service
public void sendMessage(Message message, Address[] addresses) throws MessagingException
Post an article.
- Overrides:
- sendMessage in interface Transport
- Parameters:
message
- a MimeMessageaddresses
- an array of Address(ignored!)