Access keys

XmlSocketHandler

Kind of class: class
Inherits from: AbstractLogHandler < BasicClass
Implements:
Known subclasses:
Author: Simon Wacker
Classpath: org.as2lib.env.log.handler.XmlSocketHandler
File last modified: Saturday, 10 September 2005, 15:37:04
XmlSocketHandler uses the XMLSocket to log the message.

It was originally designed to work with the POWERFLASHER's SOS
XML-Socket-Server but you can use it for any output device that is accessible
over the XML socket.

See also:
SosSocketHandler
SOS - SocketOutputServer

Summary

Constructor
Instance properties
Instance properties inherited from AbstractLogHandler
Instance methods
Instance methods inherited from AbstractLogHandler
Instance methods inherited from BasicClass

Constructor

XmlSocketHandler

function XmlSocketHandler (
host:String, port:Number, messageStringifier:Stringifier)
Constructs a new XmlSocketHandler instance.
Parameters:
host :
a fully qualified DNS domain name
port :
the TCP port number on the host used to establish a connection
messageStringifier:
(optional) the log message stringifier to use
Throws:
org.as2lib.env.except.IllegalArgumentException if the passed-in port is null
or less than 1024
To do:
throw exception when unable to connect

Instance methods

write

function write (
message:LogMessage) : Void
Uses the xml socket connection to log the passed-in message.

The string representation of the message to log is obtained via
the convertMessage method.

Parameters:
message:
the message to log