marytts.tools.perceptiontest
Class DataRequestHandler

java.lang.Object
  extended by org.apache.http.nio.protocol.SimpleNHttpRequestHandler
      extended by marytts.server.http.BaseHttpRequestHandler
          extended by marytts.tools.perceptiontest.DataRequestHandler
All Implemented Interfaces:
org.apache.http.nio.protocol.NHttpRequestHandler, org.apache.http.protocol.HttpRequestHandler

public class DataRequestHandler
extends BaseHttpRequestHandler

The data request handler for perception test

Author:
Sathish Pammi

Field Summary
 
Fields inherited from class marytts.server.http.BaseHttpRequestHandler
logger
 
Constructor Summary
DataRequestHandler()
           
DataRequestHandler(java.lang.String testXmlName)
           
 
Method Summary
 int getNumberOfSamples()
           
 java.lang.String getOptions()
           
 java.lang.String getQueryStatement()
           
 java.lang.String getSampleBaseName(int num)
           
 java.lang.String getSampleData()
           
 java.lang.String getSampleWaveFile(int num)
           
 java.util.Map<java.lang.String,java.lang.String> getTestSamples()
           
 java.lang.String getTitle()
           
protected  void handleClientRequest(java.lang.String absPath, java.util.Map<java.lang.String,java.lang.String> queryItems, org.apache.http.HttpResponse response, Address serverAddressAtClient)
           
 
Methods inherited from class marytts.server.http.BaseHttpRequestHandler
entityRequest, getAudioEffectDefaultParam, getAudioEffectHelpText, getAudioFileFormatTypes, getDataTypes, getDefaultAudioEffects, getDefaultVoiceExampleTexts, getDefaultVoiceName, getExampleText, getFullAudioEffect, getMaryVersion, getServerAddressAtClient, getVocalizations, getVoiceExampleText, getVoices, handle, isHmmAudioEffect
 
Methods inherited from class org.apache.http.nio.protocol.SimpleNHttpRequestHandler
handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRequestHandler

public DataRequestHandler()

DataRequestHandler

public DataRequestHandler(java.lang.String testXmlName)
Method Detail

handleClientRequest

protected void handleClientRequest(java.lang.String absPath,
                                   java.util.Map<java.lang.String,java.lang.String> queryItems,
                                   org.apache.http.HttpResponse response,
                                   Address serverAddressAtClient)
                            throws java.io.IOException
Specified by:
handleClientRequest in class BaseHttpRequestHandler
Throws:
java.io.IOException

getTitle

public java.lang.String getTitle()

getSampleData

public java.lang.String getSampleData()

getOptions

public java.lang.String getOptions()

getQueryStatement

public java.lang.String getQueryStatement()

getTestSamples

public java.util.Map<java.lang.String,java.lang.String> getTestSamples()

getNumberOfSamples

public int getNumberOfSamples()

getSampleBaseName

public java.lang.String getSampleBaseName(int num)

getSampleWaveFile

public java.lang.String getSampleWaveFile(int num)