[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Classpath-inetlib] Use of NNTPConnection
From: |
Carsten Ringe |
Subject: |
[Classpath-inetlib] Use of NNTPConnection |
Date: |
Mon, 28 Aug 2006 14:38:11 +0200 |
Hi guys!
>> I want to build this function into my NNTP newsreader and I can't find it in
>> the API. Could someone please help me with this or confirm that it isn't
>> possible?
> Sure, see gnu.inet.nntp.NNTPConnection.article(String)
Thanks for this hint. I read the javadoc for this class, and it really does
what I need. But unfortunatly I don't know how to get this. I create the NNTP
connection this way (it may be not 100% exact, but I can't look at the sources
at the moment...):
Session session = Session.getDefaultInstance(properties, null);
Store store = session.getStore();
Folder folder = store.getDefaultFolder();
Now my problem is: How do I get a NNTPConnection object at some point in this
procedure? Or should I just create a new object when I want to request an
article by its message ID? Just creating a NNTPConnection with my login data,
retrieving the article and then destroy that NNTPConnection?
thanks again
Carsten
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
- [Classpath-inetlib] Use of NNTPConnection,
Carsten Ringe <=