ar.com.ktulu.dict
Interface Definition

All Known Implementing Classes:
StringDefinition

public interface Definition

A word definition.

Author:
Luis Parravicini

Method Summary
 java.lang.Object getContent()
          Return the word definition.
 java.lang.String getContentEncoding()
          Return the encoding of this definition.
 java.lang.String getContentType()
          Return the content type of this definition.
 

Method Detail

getContentType

public java.lang.String getContentType()
Return the content type of this definition. If it returns null the default mime type defined in the RFC is assumed ("text/plain; charset=utf-8").


getContentEncoding

public java.lang.String getContentEncoding()
Return the encoding of this definition. If it returns null the default mime type defined in the RFC is assumed ("8bit").


getContent

public java.lang.Object getContent()
Return the word definition. The returned object must do something meaningful in toString() as this is what the server uses to send the definition to the client.