WebRunner Beans

NNTPSession Bean   API Documentation

Use the NNTPSession bean to get messages from a news server using the network news transfer protocol (NNTP).

To use an NNTPSession bean within the WebRunner Bean Tester, first select the NNTPSession bean in the bean palette and add it to the Bean Tester working area. Then press the Customize... button at the bottom of the properties window to bring up the customizer:

To establish a connection to a news server, enter the server name in the News Server field and press the Apply button. You can specify a preferred news group if you want the bean to automatically show the posted articles for a particular news group each time you connect to the server.

The customizer lets you browse posted articles in any news group on the connected news server. Select the news group you want to browse in the Current News Group box to see the list of posted articles. Double-click on an article to view its contents. To limit the shown list to recently posted articles, enter a date in the Show Articles Posted Since field.

You can also customize a NNTPSession bean by specifying its properties in the Properties area of the Bean Tester. Enter the news server name and (optionally) the preferred news group. You can enter the Show Articles Posted Since value in the queryDate property, using the date format yymmdd--for example, 970615 for June 15, 1997. The bean also identifies each article using the unique article ID provided by the news server (the articleID property).

Note: The Properties list also shows the sustainedSession property that you can assign the values True or False. By default this property is always set to True, meaning that your session is sustained (your connection to the specified server is maintained) until you press the Quit Session button on the customizer.


Copyright © Taligent, Inc. 1996 - 1997.
Copyright
© IBM Corporation 1996 - 1997.
All Rights Reserved.