Build secure network applications with SSL and the JSSE API
This article demystifies JSSE and demonstrates how to SSL-enable your applications. SSL (Secure Socket Layer) is the de facto standard for securing a communication channel between two applications that converse over the Internet. Sun's JSSE (Java Secure Socket Extension) provides SSL support for Java applications. This month, Todd Sundsted demystifies JSSE and demonstrates how to SSL-enable your applications.
Chatting in XML Financial Messages
This article explains how to apply Java and XML to financial industry messaging transactions, including Real Time Chatting (RTC) between parties.
Display images using JEditorPane
To display HTML in a JEditorPane, you would normally specify a URL that sets the document base of the HTMLDocument. However, if the HTML text is not stored in a file locally or on the Web, you cannot set the HTMLDocument document base. That becomes a problem when the <IMG> tag uses a relative path to specify the image location, but it can be overcome by modifying JEditorPane and its associated classes.
High-Level Network Programming
The java.net package contains the classes and interfaces that provide both low- and high-level APIs for network programming. The low-level APIs give you direct access to network protocols, but at the expense of simplicity; you have to work with low-level TCP sockets and UDP datagrams. The high-level APIs (such as the URL, URLConnection, and HttpURLConnection classes) let you develop network applications faster, with less code to write.
Loading URLs
Sun Microsystems made HTTP document scanning a walk in the park, as discussed in this short article about using Java to download web documents.
Start developing portals with JA-SIG uPortal
This article explains the benefits of uPortal, an open source
Java, XML, XSL (Extensible Stylesheet Language) portal
framework, and how to get it running in a production
environment. It assumes no prior experience with the portal and
covers two of its distributions, quick-start and the
source-code-only versions. Author Brad Rippe explains the Java
database HypersonicSQL, which is provided with the quick-start
distribution, and how to move from it to a production database
like Microsoft SQL Server. Finally, the article gives details
into the portal's built-in authentication mechanism, how to add
and delete users from the portal, and how it authenticates a
user. A group of Java developers overseen by Java in
Administration Special Interest Group (JA-SIG) built uPortal,
and all Java developers are welcome to contribute to the
project.
Test networked code the easy way
Networked code proves difficult to test thoroughly because test suites work best as standalone processes unreliant on other servers. In this article, Nelson Minar describes two techniques for unit testing network code. First, he proposes that you design your code such that as much logic as possible works independently from the network. Second, he suggests using Java's protocol handler classes to simulate network connections without actually using the network. By employing these principles, you'll produce easily tested network software. This article includes sample code for a Java protocol handler, as well as the PrintRSS demo program and a test suite for PrintRSS that demonstrates testing concepts.
Understanding Sockets in Unix, NT, and Java
In software development these days, networks are all-important. For example, Sun Microsystems uses the slogan, "the network is the computer." IBM promotes a network-based business model called "e-business." It's taken for granted that programs talk to each other across the network. But just how do they do it? Surprisingly, a technology that is more than 15 years old still provides the foundation for most of today's connectivity at the application level. This technology is based on an idea called sockets.
Web-based data mining
Automatically extract information with HTML, XML, and Java. In
this article, a method for Web-based data mining is developed
using the standard technologies of the Web -- HTML, XML, and
Java. This method is equal in power, if not more powerful, than
other proprietary solutions and requires little effort to
produce robust results for those already familiar with the
technologies of the Web. As an added bonus, much of the code
needed to begin data extraction is included with this article.