com.wiris.plugin
Class LibWIRIS
java.lang.Object
com.wiris.plugin.LibWIRIS
public abstract class LibWIRIS
- extends java.lang.Object
|
Method Summary |
static java.lang.String |
createIni(java.util.Properties properties)
|
static void |
flow(java.io.InputStream input,
java.io.OutputStream output)
|
static java.lang.String[] |
getAvailableCASLanguages(java.lang.String languageString)
|
static java.io.InputStream |
getContents(java.net.URL url,
java.util.Properties postVariables,
java.lang.String referer)
|
static java.net.URL |
getImageServiceURL(java.util.Properties config,
java.lang.String service)
|
static java.lang.String |
getReferer(HttpServletRequest request)
|
static java.lang.String |
htmlentities(java.lang.String input,
boolean entQuotes)
|
static java.lang.String |
httpBuildQuery(java.util.Properties properties)
|
static boolean |
inArray(java.lang.String needle,
java.lang.String[] stack)
|
static java.lang.String |
md5(byte[] input)
|
static java.lang.String |
replaceVariable(java.lang.String value,
java.lang.String variableName,
java.lang.String variableValue)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_FILE
public static final java.lang.String CONFIG_FILE
- See Also:
- Constant Field Values
DEFAULT_STORAGE_CLASS
public static final java.lang.String DEFAULT_STORAGE_CLASS
- See Also:
- Constant Field Values
imageConfigProperties
public static java.util.Properties imageConfigProperties
xmlFileAttributes
public static java.lang.String[] xmlFileAttributes
LibWIRIS
public LibWIRIS()
createIni
public static java.lang.String createIni(java.util.Properties properties)
flow
public static void flow(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
getAvailableCASLanguages
public static java.lang.String[] getAvailableCASLanguages(java.lang.String languageString)
getContents
public static java.io.InputStream getContents(java.net.URL url,
java.util.Properties postVariables,
java.lang.String referer)
throws java.lang.Exception
- Throws:
java.lang.Exception
getImageServiceURL
public static java.net.URL getImageServiceURL(java.util.Properties config,
java.lang.String service)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getReferer
public static java.lang.String getReferer(HttpServletRequest request)
htmlentities
public static java.lang.String htmlentities(java.lang.String input,
boolean entQuotes)
httpBuildQuery
public static java.lang.String httpBuildQuery(java.util.Properties properties)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
inArray
public static boolean inArray(java.lang.String needle,
java.lang.String[] stack)
md5
public static java.lang.String md5(byte[] input)
throws java.security.NoSuchAlgorithmException,
java.io.UnsupportedEncodingException
- Throws:
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
replaceVariable
public static java.lang.String replaceVariable(java.lang.String value,
java.lang.String variableName,
java.lang.String variableValue)