net.sf.dict4j.command
Class ShowDatabasesCommand

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.ShowDatabasesCommand
All Implemented Interfaces:
Command, DataCommand

public class ShowDatabasesCommand
extends AbstractListDataCommand

3.5.1.1. SHOW DATABASES

Displays the list of currently accessible databases, one per line, in the form: database 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
ShowDatabasesCommand()
           
 
Method Summary
 java.util.List<Database> getDatabases()
          get databases, available on the server
protected  ResponseEnum[] getResponseHeaderCodes()
           
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

ShowDatabasesCommand

public ShowDatabasesCommand()
Method Detail

getString

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

getDatabases

public java.util.List<Database> getDatabases()
get databases, available on the server

Returns:
map with database 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