uk.ac.ncl.cs.instantsoap.wsapi.impl
Class EchoingStringProcessor

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.wsapi.impl.EchoingStringProcessor
All Implemented Interfaces:
StringProcessor

@SpiProvider
public class EchoingStringProcessor
extends Object
implements StringProcessor

An implementation of StringProcessor that echoes the input string to the output.

Author:
Matthew Pocock

Constructor Summary
EchoingStringProcessor()
           
EchoingStringProcessor(String application)
           
 
Method Summary
 MetaData describeApplication()
          Describe this string transformation application.
 String getApplicationName()
           
 MetaData getInput()
          Describe the single input.
 MetaData getOutputs()
          Describe the single output.
 String process(String data)
          Process input data.
 void setApplicationName(String applicationName)
           
 void validate(String data)
          Check that the input is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoingStringProcessor

public EchoingStringProcessor()

EchoingStringProcessor

public EchoingStringProcessor(String application)
Method Detail

getApplicationName

public String getApplicationName()

setApplicationName

public void setApplicationName(String applicationName)

process

public String process(String data)
               throws JobExecutionException
Description copied from interface: StringProcessor
Process input data.

Specified by:
process in interface StringProcessor
Parameters:
data - the input String
Returns:
the output String
Throws:
JobExecutionException

validate

public void validate(String data)
              throws InvalidJobSpecificationException
Description copied from interface: StringProcessor
Check that the input is valid.

Specified by:
validate in interface StringProcessor
Parameters:
data - the input String
Throws:
InvalidJobSpecificationException

describeApplication

public MetaData describeApplication()
Description copied from interface: StringProcessor
Describe this string transformation application.

Specified by:
describeApplication in interface StringProcessor
Returns:
the MetaData describing the application, including its name

getInput

public MetaData getInput()
Description copied from interface: StringProcessor
Describe the single input.

Specified by:
getInput in interface StringProcessor
Returns:
the MetaData describing the input, including its name

getOutputs

public MetaData getOutputs()
Description copied from interface: StringProcessor
Describe the single output.

Specified by:
getOutputs in interface StringProcessor
Returns:
the MetaData describing the output, including its name


Copyright © 2006-2008. All Rights Reserved.