|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wallstreetwise.app.jspell.domain.net.JSpellTools
public class JSpellTools
The base class for the JSpellHTMLTools and JSpellIFrameTools classes.
| Field Summary | |
|---|---|
protected boolean |
bannerPrinted
A boolean indicating whether the copyright banner has been displayed. |
protected java.lang.String |
defaultProxy
Specifies the URL for the spell checker. |
java.lang.String |
dictionaryPath
Path to dictionary files. |
static java.lang.String |
fileSeparator
The operating system file separator constant. |
protected boolean |
IFrameValidator
Boolean indicating whether an IFrame is being spell checked. |
static byte[] |
indexDataArray
A byte array that holds the default JSpell dictionary file for the JSpell HTML and JSpell IFrame products. |
boolean |
indexReady
Index opened successfully? |
protected java.lang.String |
softwareID
Implemented by subclasses to specify HTML or IFrame spell checker version. |
| Constructor Summary | |
|---|---|
protected |
JSpellTools()
Creates a new instance of JSpellTools |
| Method Summary | |
|---|---|
java.lang.String |
getImagePath(javax.servlet.ServletRequest request)
Returns the URL of the images for the non direct edit version of JSpell HTML 2004. |
java.lang.String |
getLanguage(javax.servlet.ServletRequest request)
Returns the language of the spell check request. |
java.lang.String |
getProxy(javax.servlet.http.HttpServletRequest request)
Gets proxy URL if specified, or URL of JSpell.jsp. |
java.lang.String |
getStyleSheetURL(javax.servlet.http.HttpServletRequest request)
Returns the URL of the style sheet URL. |
java.lang.String |
getSupplementalDictionary(javax.servlet.ServletRequest request)
Returns the words in the supplemental dictionary. |
void |
indexSetup(javax.servlet.ServletConfig config,
java.lang.String dictionaryOverride)
Initializes the dictionaries. |
java.lang.String |
loadSupplementalDictionary(java.lang.String supplementalDictionary)
Loads a list of words to ignore for purposes of spell checking. |
void |
printBanner(javax.servlet.ServletConfig config)
Prints the copyright banner for JSpell HTML 2004. |
static void |
setCache(javax.servlet.http.HttpServletResponse response)
Sets the cache response header. |
boolean |
testWrite(java.lang.String directory)
Check if a directory can be written to. |
void |
useBackupMethod()
If jspellLexicons has not been specified or is inaccessible then attempt to create JSpell dictionary using internal copy of dictionary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String softwareID
protected boolean IFrameValidator
protected java.lang.String defaultProxy
public static byte[] indexDataArray
public static java.lang.String fileSeparator
public boolean indexReady
public java.lang.String dictionaryPath
protected boolean bannerPrinted
| Constructor Detail |
|---|
protected JSpellTools()
| Method Detail |
|---|
public void printBanner(javax.servlet.ServletConfig config)
config - a ServletConfig object.public java.lang.String loadSupplementalDictionary(java.lang.String supplementalDictionary)
supplementalDictionary - a String.
public void indexSetup(javax.servlet.ServletConfig config,
java.lang.String dictionaryOverride)
config - a ServletConfig object.dictionaryOverride - a String - optional path to directory containing JSpell dictionary files.public void useBackupMethod()
public boolean testWrite(java.lang.String directory)
directory - The directory to test.
public java.lang.String getStyleSheetURL(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
request - an HttpServletRequest object.
java.lang.Exception - an Exception object.
public java.lang.String getSupplementalDictionary(javax.servlet.ServletRequest request)
throws java.lang.Exception
request - a ServletRequest object.
java.lang.Exception - an Exception object.
public java.lang.String getLanguage(javax.servlet.ServletRequest request)
throws java.lang.Exception
request - a ServletRequest object.
java.lang.Exception - an Exception object.
public java.lang.String getImagePath(javax.servlet.ServletRequest request)
throws java.lang.Exception
request - a ServletRequest object.
java.lang.Exception - an Exception object.public java.lang.String getProxy(javax.servlet.http.HttpServletRequest request)
request - an HttpServletRequest object.
public static void setCache(javax.servlet.http.HttpServletResponse response)
response - an HttpServletResponse object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||