net.sf.dict4j.command
Class DefineCommand

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

public class DefineCommand
extends AbstractDataCommand


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
DefineCommand(java.lang.String word)
           
DefineCommand(java.lang.String word, java.lang.String database)
           
 
Method Summary
protected  void checkResponseCodeForServerException(ResponseEnum responseEnum)
           
protected  boolean doesResponseHaveBody()
           
 java.util.List<Definition> getDefinitions()
           
protected  ResponseEnum[] getResponseHeaderCodes()
           
protected  java.lang.String getString()
           
protected  void parseResponseHeader(java.lang.String header)
           
protected  void receiveBody(DictTransport transport)
           
 
Methods inherited from class net.sf.dict4j.command.AbstractDataCommand
getResponseFooterEnum, getResponseText, receiveFooter, send
 
Methods inherited from class net.sf.dict4j.command.AbstractCommand
getResponseCode, getResponseEnum, getResponseHeaderEnum, getResponseStatus, parseResponse, 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

DefineCommand

public DefineCommand(java.lang.String word,
                     java.lang.String database)

DefineCommand

public DefineCommand(java.lang.String word)
Method Detail

receiveBody

protected void receiveBody(DictTransport transport)
Overrides:
receiveBody in class AbstractDataCommand

parseResponseHeader

protected void parseResponseHeader(java.lang.String header)
Overrides:
parseResponseHeader in class AbstractCommand

checkResponseCodeForServerException

protected void checkResponseCodeForServerException(ResponseEnum responseEnum)
                                            throws DictServerException
Overrides:
checkResponseCodeForServerException in class AbstractCommand
Throws:
DictServerException

getResponseHeaderCodes

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

getString

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

getDefinitions

public java.util.List<Definition> getDefinitions()

doesResponseHaveBody

protected boolean doesResponseHaveBody()
Overrides:
doesResponseHaveBody in class AbstractDataCommand