Logon SAX Handler

The final development piece to add before we can test our logon framework module is a specific implementation of the SAX class DefaultHandler, called VMSLogonSAXHandler.

This class determines what happens as the SAX engine parses the XML stream, and it has a number of key methods as shown in Table 4-1.

VMSLogonSAXHandler will only implement code for two of the methods shown in the table above, as the XML message being processed does not require any complicated nested data management. This is shown in the code listed in Figure 4-5.

For the logon XML message, we do not need to perform any processing at the start or end of the document; therefore, we do not need to implement the {start-document} or {end-document} methods. We do, ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.