net.sf.dict4j.command
Class ShowStrategiesCommand

java.lang.Object
  extended by net.sf.dict4j.command.AbstractCommand
      extended by net.sf.dict4j.command.AbstractDataCommand
          extended by net.sf.dict4j.command.AbstractListDataCommand
              extended by net.sf.dict4j.command.ShowStrategiesCommand
All Implemented Interfaces:
Command, DataCommand

public class ShowStrategiesCommand
extends AbstractListDataCommand

3.5.2.1. SHOW STRATEGIES (SHOW STRAT)

Displays the list of currently supported search strategies, one per line, in the form: strategy description


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.dict4j.command.AbstractListDataCommand
AbstractListDataCommand.Entry
 
Field Summary
 
Fields inherited from class net.sf.dict4j.command.AbstractDataCommand
responseText
 
Fields inherited from class net.sf.dict4j.command.AbstractCommand
responseCode, responseStatus
 
Constructor Summary
ShowStrategiesCommand()
           
 
Method Summary
protected  ResponseEnum[] getResponseHeaderCodes()
           
 java.util.List<Strategy> getStrategies()
          get strategies available on the server
protected  java.lang.String getString()
           
protected  void parseResponseText()
           
 
Methods inherited from class net.sf.dict4j.command.AbstractListDataCommand
getList, receiveBody
 
Methods inherited from class net.sf.dict4j.command.AbstractDataCommand
doesResponseHaveBody, getResponseFooterEnum, getResponseText, receiveFooter, send
 
Methods inherited from class net.sf.dict4j.command.AbstractCommand
checkResponseCodeForServerException, getResponseCode, getResponseEnum, getResponseHeaderEnum, getResponseStatus, parseResponse, parseResponseHeader, receiveHeader, stripQuotes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.dict4j.command.Command
getResponseCode, getResponseStatus
 

Constructor Detail

ShowStrategiesCommand

public ShowStrategiesCommand()
Method Detail

getString

protected java.lang.String getString()
Specified by:
getString in class AbstractCommand

getStrategies

public java.util.List<Strategy> getStrategies()
get strategies available on the server

Returns:
map with strategy name as key and desciption as value

parseResponseText

protected void parseResponseText()
Overrides:
parseResponseText in class AbstractListDataCommand

getResponseHeaderCodes

protected ResponseEnum[] getResponseHeaderCodes()
Specified by:
getResponseHeaderCodes in class AbstractCommand