public class JSpellTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
bannerPrinted
A boolean indicating whether the copyright banner has been displayed.
|
java.lang.String |
cacheSize
Cache Size.
|
protected java.lang.String |
defaultProxy
Specifies the URL for the spell checker.
|
java.lang.String |
dictionaryPath
Path to dictionary files.
|
boolean |
indexReady
Index opened successfully?
|
protected java.lang.String |
softwareID
String description of software module ID.
|
Modifier | Constructor and Description |
---|---|
protected |
JSpellTools()
Creates a new instance of JSpellTools
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImagePath(javax.servlet.ServletRequest request)
Returns the URL of the images for the non direct edit version of JSpell HTML
|
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.
|
static void |
setCache(javax.servlet.http.HttpServletResponse response)
Sets the cache response header.
|
protected java.lang.String softwareID
protected java.lang.String defaultProxy
public boolean indexReady
public java.lang.String dictionaryPath
public java.lang.String cacheSize
protected boolean bannerPrinted
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 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.JSpell SDK - Spell Checker for the Java Platform
Copyright © 2009-2019 Page Scholar Inc, All Rights Reserved - https://www.jspell.com