net.sf.dict4j.command
Class AbstractDataCommand

java.lang.Object
  extended by net.sf.dict4j.command.AbstractCommand
      extended by net.sf.dict4j.command.AbstractDataCommand
All Implemented Interfaces:
Command, DataCommand
Direct Known Subclasses:
AbstractListDataCommand, DefineCommand, HelpCommand, ShowServerCommand

public abstract class AbstractDataCommand
extends AbstractCommand
implements DataCommand


Field Summary
protected  java.lang.String responseText
           
 
Fields inherited from class net.sf.dict4j.command.AbstractCommand
responseCode, responseStatus
 
Constructor Summary
AbstractDataCommand()
           
 
Method Summary
protected  boolean doesResponseHaveBody()
           
protected  ResponseEnum getResponseFooterEnum(int code)
           
 java.lang.String getResponseText()
           
protected  void receiveBody(DictTransport transport)
           
protected  void receiveFooter(DictTransport transport)
           
 void send(DictTransport transport)
           
 
Methods inherited from class net.sf.dict4j.command.AbstractCommand
checkResponseCodeForServerException, getResponseCode, getResponseEnum, getResponseHeaderCodes, getResponseHeaderEnum, getResponseStatus, getString, 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
 

Field Detail

responseText

protected java.lang.String responseText
Constructor Detail

AbstractDataCommand

public AbstractDataCommand()
Method Detail

send

public void send(DictTransport transport)
Specified by:
send in interface Command
Overrides:
send in class AbstractCommand

receiveBody

protected void receiveBody(DictTransport transport)

receiveFooter

protected void receiveFooter(DictTransport transport)

getResponseFooterEnum

protected ResponseEnum getResponseFooterEnum(int code)

getResponseText

public java.lang.String getResponseText()
Specified by:
getResponseText in interface DataCommand

doesResponseHaveBody

protected boolean doesResponseHaveBody()