soap tutorial

adriani.jws.template.service
Class ServiceAnalyzer

java.lang.Object
  extended by adriani.jws.template.service.GeneralAnalyzer
      extended by adriani.jws.template.service.ServiceAnalyzer

public class ServiceAnalyzer
extends GeneralAnalyzer

Implementation of the general GeneralAnalyzer abstract class for the specific web service.

To provide an example of implementation, here we added the management of the CUSTOMER related analysis: remove the corresponding code if not necessary.


Field Summary
protected  int no_customer
          Number of times the input data did not match any customer in the database.
 
Fields inherited from class adriani.jws.template.service.GeneralAnalyzer
calls, command, dao_error, last_dump, leadingName, list, logger, logic_error, macro_error, no_db, no_error, no_record, no_result, sql_error, sql_query, startup, table, validation_error
 
Constructor Summary
ServiceAnalyzer()
          Standard constructor, creating the ArrayList object used to store the result of each call when the web service is deployed in a multi-threading environment (default).
 
Method Summary
 void addNoCustomer()
          Mutator method.
 void endCall(int code)
          Stop the chronwatch after the end of one call service, even if the call generated an error.
 int getNoCustomer()
          Accessor method.
 java.lang.StringBuffer getResults()
          Produce a StringBuffer object containing all the analysis data already formatted and ready for printing.
 
Methods inherited from class adriani.jws.template.service.GeneralAnalyzer
addCommand, addDAOError, addLogicError, addMacroError, addNoDatabase, addNoError, addNoRecord, addNoResult, addSQLError, addSQLQuery, addValidationError, collect, getCalls, getCommand, getDAOError, getLastDump, getLogicError, getMacroError, getNoDatabase, getNoError, getNoRecord, getNoResult, getSQLError, getSQLQuery, getStartup, getValidationError, logResults, printResults, setLastDump, startCall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

no_customer

protected int no_customer
Number of times the input data did not match any customer in the database.

Constructor Detail

ServiceAnalyzer

public ServiceAnalyzer()
Standard constructor, creating the ArrayList object used to store the result of each call when the web service is deployed in a multi-threading environment (default).

Method Detail

getResults

public java.lang.StringBuffer getResults()
Produce a StringBuffer object containing all the analysis data already formatted and ready for printing.

Specified by:
getResults in class GeneralAnalyzer
Returns:
a string buffer object containing the formatted results of the analysis

endCall

public void endCall(int code)
Stop the chronwatch after the end of one call service, even if the call generated an error. If the chronwatch is stopped after an execution error, the error code is identified using the static values defined in the ErrorMessage class.

Specified by:
endCall in class GeneralAnalyzer
Parameters:
code - the integer code describing the event or error
See Also:
ErrorMessage

addNoCustomer

public void addNoCustomer()
Mutator method.


getNoCustomer

public int getNoCustomer()
Accessor method.


Build 18/09/2012

Morpheus Quality Technologies - Making the Zion software
Copyright © 2009-2013 Morpheus Quality Technologies. All Rights Reserved