org.red5.samples.services
Class EchoService

java.lang.Object
  extended by org.red5.samples.services.EchoService
All Implemented Interfaces:
IEchoService

public class EchoService
extends Object
implements IEchoService

The Echo service is used to test all of the different datatypes and to make sure that they are being returned properly.

Author:
The Red5 Project (red5@osflash.org), Chris Allen (mrchrisallen@gmail.com)

Nested Class Summary
 class EchoService.SampleObject
          Sample object that contains attributes with all access possibilities.
 
Constructor Summary
EchoService()
           
 
Method Summary
 Object echoAny(Object any)
           
 Object[] echoArray(Object[] array)
          Verifies that a Flash simple Array that is passed in returns correctly.
 boolean echoBoolean(boolean bool)
          Verifies that a boolean that is passed in returns correctly.
 Date echoDate(Date date)
          Verifies that a Date that is passed in returns correctly.
 List echoList(List list)
          Verifies that a Flash multi-dimensional Array that is passed in returns itself.
 Object[] echoMultiParam(Map team, List words, String str)
           
 double echoNumber(double number)
          Verifies that a Number that is passed in returns correctly.
 Map echoObject(Map obj)
          Verifies that a Flash Object that is passed in returns correctly.
 String echoString(String string)
          Verifies that a String that is passed in returns correctly.
 Document echoXML(Document xml)
          Verifies that Flash XML that is passed in returns itself.
 IConnection returnConnection(Object any)
          Test returning of internal objects.
 List<Object> returnDistinctObjects(Object any)
          Test serialization of arbitrary objects.
 List<Object> returnSameObjects(Object any)
          Test references.
 void startUp()
          Used to verify that Spring has loaded the bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoService

public EchoService()
Method Detail

startUp

public void startUp()
Used to verify that Spring has loaded the bean.

Specified by:
startUp in interface IEchoService

echoBoolean

public boolean echoBoolean(boolean bool)
Description copied from interface: IEchoService
Verifies that a boolean that is passed in returns correctly.

Specified by:
echoBoolean in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoBoolean(boolean)

echoNumber

public double echoNumber(double number)
Description copied from interface: IEchoService
Verifies that a Number that is passed in returns correctly. Flash Number = double

Specified by:
echoNumber in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoNumber(double)

echoString

public String echoString(String string)
Description copied from interface: IEchoService
Verifies that a String that is passed in returns correctly.

Specified by:
echoString in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoString(java.lang.String)

echoDate

public Date echoDate(Date date)
Description copied from interface: IEchoService
Verifies that a Date that is passed in returns correctly.

Specified by:
echoDate in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoDate(java.util.Date)

echoObject

public Map echoObject(Map obj)
Description copied from interface: IEchoService
Verifies that a Flash Object that is passed in returns correctly. Flash Object = java.utils.Map

Specified by:
echoObject in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoObject(java.util.Map)

echoArray

public Object[] echoArray(Object[] array)
Description copied from interface: IEchoService
Verifies that a Flash simple Array that is passed in returns correctly. Flash simple Array = Object[]

Specified by:
echoArray in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoArray(java.lang.Object[])

echoList

public List echoList(List list)
Description copied from interface: IEchoService
Verifies that a Flash multi-dimensional Array that is passed in returns itself. Flash multi-dimensional Array = java.utils.List

Specified by:
echoList in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoList(java.util.List)

echoXML

public Document echoXML(Document xml)
Description copied from interface: IEchoService
Verifies that Flash XML that is passed in returns itself. Flash XML = org.w3c.dom.Document

Specified by:
echoXML in interface IEchoService
Returns:
input value
See Also:
IEchoService.echoXML(org.w3c.dom.Document)

echoMultiParam

public Object[] echoMultiParam(Map team,
                               List words,
                               String str)

echoAny

public Object echoAny(Object any)

returnDistinctObjects

public List<Object> returnDistinctObjects(Object any)
Test serialization of arbitrary objects.

Parameters:
any -
Returns:
list containing distinct objects

returnSameObjects

public List<Object> returnSameObjects(Object any)
Test references.

Parameters:
any -
Returns:
list containing same objects

returnConnection

public IConnection returnConnection(Object any)
Test returning of internal objects.

Parameters:
any -
Returns:
the current connection


Copyright © 2006-2007 the Red5 project.