deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.owswatch
Class ServiceLog

java.lang.Object
  extended by 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 (Mi, 21. Okt 2009) $
Author:
Moataz Elmasry, last edited by: $Author: jmays $
See Also:
Serialized Form

Constructor Summary
ServiceLog(String protDirPath, int serviceId, String serviceName, String serviceType, String servletAddr, EmailSender emailSender)
           
 
Method Summary
 void addMessage(ValidatorResponse response, ServiceConfiguration serviceconfig)
          adds a message to protocol file
 EmailSender getEmailSender()
           
 String getProtDirPath()
           
 String getProtHttpAddr()
           
 String getProtocolURI()
           
 String getProtPath()
           
 ValidatorResponse getResponse()
           
protected  Element init()
          creates an xml protocol file for this Protocol Object if it does not already exist
 void setProtDirPath(String protDirPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org