org.deegree.portal.owswatch
Class ServiceLog
java.lang.Object
org.deegree.portal.owswatch.ServiceLog
- All Implemented Interfaces:
- java.io.Serializable
public class ServiceLog
- extends java.lang.Object
- implements java.io.Serializable
A class to log the testings results into a protocol file, i.e. a logger class
- Version:
- $Revision: 20271 $, $Date: 2009-10-21 13:07:15 +0200 (Mi, 21 Okt 2009) $
- Author:
- Moataz Elmasry, last edited by: $Author: jmays $
- See Also:
- Serialized Form
Constructor Summary |
ServiceLog(java.lang.String protDirPath,
int serviceId,
java.lang.String serviceName,
java.lang.String serviceType,
java.lang.String servletAddr,
EmailSender emailSender)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceLog
public ServiceLog(java.lang.String protDirPath,
int serviceId,
java.lang.String serviceName,
java.lang.String serviceType,
java.lang.String servletAddr,
EmailSender emailSender)
throws java.io.IOException
- Parameters:
serviceId
- serviceName
- serviceType
- protDirPath
- servletAddr
- emailSender
- The class responsible for sending emails
- Throws:
java.io.IOException
- if the given paths are invalid
XMLException
- if the xmlDocument(s) are mal formed
init
protected org.w3c.dom.Element init()
throws java.io.IOException
- creates an xml protocol file for this Protocol Object if it does not already exist
- Throws:
java.io.IOException
addMessage
public void addMessage(ValidatorResponse response,
ServiceConfiguration serviceconfig)
- adds a message to protocol file
- Parameters:
response
- serviceconfig
-
getProtocolURI
public java.lang.String getProtocolURI()
- Returns:
- String the uri of this Protocol Object
getProtPath
public java.lang.String getProtPath()
- Returns:
- protocol path
getProtDirPath
public java.lang.String getProtDirPath()
- Returns:
- String
setProtDirPath
public void setProtDirPath(java.lang.String protDirPath)
- Parameters:
protDirPath
-
getProtHttpAddr
public java.lang.String getProtHttpAddr()
- Returns:
- http address that forwards you to the protocol page
getEmailSender
public EmailSender getEmailSender()
- Returns:
EmailSender
getResponse
public ValidatorResponse getResponse()
- Returns:
EmailSender
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org