Package org.kohsuke.jnt

The library that exposes programatic manipulation of java.net.

See:
          Description

Interface Summary
JNMailingList.ProgressCallback Appliation can implement this interface to receive progress reports on subscribing e-mail addresses to a mailing list.
 

Class Summary
IssueVersion The version against which issues can be reported.
JavaNet Root of java.net.
JNFile File in the documents & files section.
JNFileFolder folder in the java.net file sharing section.
JNForum java.net discussion forum.
JNForums java.net discussion forums in one project.
JNIssue An issue.
JNIssueTracker java.net issue tracker (IssueZilla) in one project.
JNMailingList A mailing list of a project on java.net.
JNMailingList.MessagePerMonth The number of messages posted per month.
JNMailingLists java.net project mailing list section.
JNMembership Membership of a project.
JNMyself The current logged-in user in java.net.
JNNewsItem One announcement, such as this
JNNewsItems java.net project news item section.
JNProject Java.net project.
JNRole An role on java.net.
JNUser An user of java.net.
MHTMLBuilder Creates an MHTML package from a URL.
 

Enum Summary
FileStatus  
IssueField  
IssueResolution Resolution of an issue.
IssueStatus Status of an issue.
IssueType  
JNVCS Version control systems.
ListType Mailing list operation mode enum.
Priority Constants for priorities of issues.
SubscriptionMode Mode of subscription to a mailing list.
 

Exception Summary
ProcessingException Signals processing error.
 

Package org.kohsuke.jnt Description

The library that exposes programatic manipulation of java.net.

This library wraps the web interface of java.net so that you can programatically access java.net to perform some tasks.

A typical usage of this library would look like the following:

// connect to java.net
JavaNet connection = JavaNet.connect(...);

// then perform some tasks
JNProject project = connection.getProject("jaxb");
projects.getForums().createForum("test","creating a new forum with the java.net tasks");

The first thing you need to do is to connect to java.net. When you connect, you need to specify your username and password in one way or another. The various connect methods let you provide these information in different ways. The credentials of the user account determines what you can do.

Once you get a JavaNet object, you can access it just like any other object model. In the above example, it's creating a new forum in the JAXB project.

Error Handling

Because most of this API relies heavily on HTML scraping and remote access, there's inherently a risk of errors. All the errors this API encouners are thrown as ProcessingException.



Copyright © 2003-2008 Kohsuke Kawaguchi. All Rights Reserved.