ch.elca.el4j.tests.remoting.jaxws.service.impl
Class CalculatorCopyImplJaxws

java.lang.Object
  extended by ch.elca.el4j.tests.remoting.jaxws.service.impl.CalculatorCopyImplJaxws
All Implemented Interfaces:
CalculatorCopy

public class CalculatorCopyImplJaxws
extends Object
implements CalculatorCopy

This class is an additional annotated version of CalculatorImpl (just to test a second service).

Author:
Stefan Wismer (SWI) Recommended naming convention: name = name of implemented core interface serviceName = name of implemented core interface + "Service"
File-location:
CalculatorCopyImplJaxws
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Constructor Summary
CalculatorCopyImplJaxws()
           
 
Method Summary
 int countNumberOfUppercaseLetters(String text)
          This method counts all uppercase letters of a text.
 CalculatorValueObject echoValueObject(CalculatorValueObject valueObject)
          This method does an echo of the given object.
 double getArea(double a, double b)
          This method calculates the area of a rectangle.
 void throwMeAnException()
          This method throws an exception for test reason.
 void throwMeASpecialException(String action)
          This method throws a special exception for test reason.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatorCopyImplJaxws

public CalculatorCopyImplJaxws()
Method Detail

countNumberOfUppercaseLetters

public int countNumberOfUppercaseLetters(String text)
This method counts all uppercase letters of a text.

Specified by:
countNumberOfUppercaseLetters in interface CalculatorCopy
Parameters:
text - Is the object to analyze.
Returns:
Returns the number of uppercase letters.

echoValueObject

public CalculatorValueObject echoValueObject(CalculatorValueObject valueObject)
This method does an echo of the given object.

Specified by:
echoValueObject in interface CalculatorCopy
Parameters:
valueObject - Is the object to echo.
Returns:
Returns the received object.

getArea

public double getArea(double a,
                      double b)
This method calculates the area of a rectangle.

Specified by:
getArea in interface CalculatorCopy
Parameters:
a - Is the first side.
b - Is the second side.
Returns:
Returns the area of the triangle.

throwMeASpecialException

public void throwMeASpecialException(String action)
                              throws SpecialCalculatorException
This method throws a special exception for test reason.

Specified by:
throwMeASpecialException in interface CalculatorCopy
Parameters:
action - Is the dynamic part of the thrown exception.
Throws:
SpecialCalculatorException - will be thrown every time.

throwMeAnException

public void throwMeAnException()
                        throws CalculatorException
This method throws an exception for test reason.

Specified by:
throwMeAnException in interface CalculatorCopy
Throws:
CalculatorException - will be thrown every time.


Copyright © 2005-2011 ELCA. All Rights Reserved.