org.deegree.portal.owswatch
Class ServiceLog
java.lang.Object
org.deegree.portal.owswatch.ServiceLog
- All Implemented Interfaces:
- Serializable
public class ServiceLog
- extends Object
- implements 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 (Wed, 21 Oct 2009) $
- Author:
- Moataz Elmasry, last edited by: $Author: jmays $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceLog
public ServiceLog(String protDirPath,
int serviceId,
String serviceName,
String serviceType,
String servletAddr,
EmailSender emailSender)
throws IOException
- Parameters:
serviceId
- serviceName
- serviceType
- protDirPath
- servletAddr
- emailSender
- The class responsible for sending emails
- Throws:
IOException
- if the given paths are invalid
XMLException
- if the xmlDocument(s) are mal formed
init
protected Element init()
throws IOException
- creates an xml protocol file for this Protocol Object if it does not already exist
- Throws:
IOException
addMessage
public void addMessage(ValidatorResponse response,
ServiceConfiguration serviceconfig)
- adds a message to protocol file
- Parameters:
response
- serviceconfig
-
getProtocolURI
public String getProtocolURI()
- Returns:
- String the uri of this Protocol Object
getProtPath
public String getProtPath()
- Returns:
- protocol path
getProtDirPath
public String getProtDirPath()
- Returns:
- String
setProtDirPath
public void setProtDirPath(String protDirPath)
- Parameters:
protDirPath
-
getProtHttpAddr
public 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