com.ibm.websphere.als

Class HttpLogger

  1. java.lang.Object
  2. extended bycom.ibm.websphere.als.HttpLogger
All implemented interfaces:
Logger

Deprecated.
  1. public class HttpLogger
  2. extends java.lang.Object
  3. implements Logger
This class implements Logger interface for HTTP/S persistence. The records are POSTED to the specified URL which must be a web program such as CGI or servlet. This class doesn't support security of any form; thus the URL should not be in a protected realm. The data is format as a 5-tuple as follow:

sawt_site=siteName&sawt_type=WT_WAS{&sawt_info=data}+ where data is

See DatabaseLogger class for definition of the fields. If a field is null, a dash (-) will be written in that position. For example, "sawt_site=yahoo&sawt_type=WT_WAS&sawt_info=<01010123-1234> <-><->&sawt_info=<01010123-1235> <-><->"

See Also:
DatabaseLogger

Constructor Summary

Constructor and Description
HttpLogger(java.net.URL url)
Deprecated. Constructs a HTTP-base Logger.
HttpLogger(java.net.URL url,java.lang.String siteName)
Deprecated. Constructs a HTTP-base Logger.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getStorageSource()
Deprecated. Returns my storage source -- a URL
  1. void
write(LogRecord[] lr)
Deprecated. Sends the data to the receiving URL specified in the constructor.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

HttpLogger

  1. public HttpLogger(java.net.URL url)
Deprecated.
Constructs a HTTP-base Logger. The name of the site is default to the hostname of the specified URL.
Parameters:
url - a web program URL receiving the data from this logger such as a CGI or a servlet

HttpLogger

  1. public HttpLogger(java.net.URL url,
  2. java.lang.String siteName)
Deprecated.
Constructs a HTTP-base Logger.
Parameters:
url - a web program URL receiving the data from this logger such as a CGI or a servlet
siteName - a name representing the site where the data generated

Method Detail

write

  1. public void write(LogRecord[] lr)
  2. throws java.lang.Exception
Deprecated.
Sends the data to the receiving URL specified in the constructor.
Specified by:
write in interface Logger
Parameters:
lr - array of LogRecords
Throws:
java.lang.Exception - when unable to send data to the URL after 3 tries.

getStorageSource

  1. public java.lang.Object getStorageSource( )
Deprecated.
Returns my storage source -- a URL
Specified by:
getStorageSource in interface Logger