|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.emframe.dev.eMFrameUtils
General utility methods for use by plug-ins. Methods help with localization and web development. Most methods are static.
The main methods to use to access objects your task may need:
addUnique(java.util.Collection, java.lang.Object[]) - Adds only unique items from one Collection to another Collection.getLocalizedString(java.lang.String, java.lang.String, com.novell.emframe.dev.PluginContext) - Returns a localized String from a resource file based upon the locale.getModulesBasePath() - Gets a filesystem dependant full path to the modules directory.getRealPath(java.lang.String) - Gets the full path from a path relative to our webapp.setErrorMessage(java.lang.Throwable, com.novell.emframe.dev.TaskContext) - Sets the error information in the results for the current request.setMessage(java.lang.String, java.lang.String, java.lang.String, com.novell.emframe.dev.TaskContext) - Sets error/success message with plain and bold text as well as error details.urlDecode(java.lang.String, com.novell.emframe.dev.PluginContext) - Decodes String that has been urlEncoded.urlEncode(java.lang.String, java.lang.String) - URL encodes using utf-8 encoding.
| Constructor Summary | |
eMFrameUtils()
|
|
| Method Summary | |
static void |
addUnique(java.util.Collection collection,
java.util.Collection newItems)
Adds all newItems to Collection if they don't exist. |
static void |
addUnique(java.util.Collection dstCollection,
java.lang.Object[] sourceObjects)
Adds all sourceObjects to dstCollection if they don't exist. |
static int |
byteToDecimal(byte b)
Converts a byte to its positive decimal value. |
static java.lang.String |
concatProperties(java.util.Properties properties)
Creates semi-colon delimited key/value pair string. |
static java.lang.String |
concatStrings(java.lang.String[] strings,
java.lang.String delimiter)
Concatinates tokens together seperated by delimiter. |
static java.lang.Throwable |
discoverRootException(java.lang.Throwable ex)
If the exception is a org.apache.jasper.JasperException, it finds the root cause. |
static java.lang.String |
formatMessage(java.lang.String pattern,
java.lang.Object[] arguments)
Convenience method that works just like MessageFormat.formatMessage(), but first replaces all occurences of ' with ''. |
static java.lang.String |
getAccessMode(TaskContext context)
Returns the current mode of Role-based services ("Unrestricted", "CollectionOwner", or "Assigned"). |
static byte[] |
getByteArray(java.io.InputStream is)
Reads in all of the input stream and retuns it as a byte[]. |
static java.lang.String |
getClassName(org.jdom.Document doc)
Inspects plug-in XML descriptor and returns Java class entry point. |
static java.lang.String |
getConfigSetting(com.novell.nps.gadgetManager.BaseGadgetInstance task,
java.lang.String prop,
java.lang.String defaultValue)
Returns the value of a configuration setting as a String, or a default value if the setting does not exist. |
static java.lang.String[] |
getConfigSettings(com.novell.nps.gadgetManager.BaseGadgetInstance task,
java.lang.String prop)
Returns the values of a configuration setting as an array of Strings. |
static java.lang.String |
getDisplayName(org.jdom.Document taskDoc,
PluginContext context)
Gets the display name of an iManager plug-in from the XML descriptor. |
static java.lang.String |
getDisplayName(org.jdom.Element root,
PluginContext context)
Gets the display name of an iManager plug-in from the XML descriptor. |
static java.lang.String |
getDisplayName(org.jdom.Element root,
java.lang.String tagName,
PluginContext context)
Gets the display name of an iManager plug-in from the XML descriptor and passes in the tag name to use to get the display-name key. |
static java.lang.String |
getErrorTemplate(PluginContext context)
Gets the simple name of the error JSP to be used for rendering. |
static java.lang.String |
getExceptionMessage(java.lang.Exception e,
PluginContext context)
Inspects the exception and creates the best message it can (based on the type of exception). |
static java.lang.String |
getLocalizedString(java.lang.String strResourceFile,
java.lang.String strResId,
java.util.Locale locale)
Gets a localized String from a resource file. |
static java.lang.String |
getLocalizedString(java.lang.String strResourceFile,
java.lang.String strResId,
PluginContext context)
Gets a localized String from a resource file. |
static java.lang.String |
getMergeTemplate(PluginContext context)
Gets the simple name of the merge JSP to be used for rendering. |
static java.lang.String |
getModuleFromFullName(java.lang.String fullName)
From a full jsp resource name (ex. |
static java.lang.String |
getModulesBasePath()
Gets a filesystem dependant full path to the modules directory. |
static java.lang.String |
getPageFromFullName(java.lang.String fullName)
From a full jsp resource name (ex. |
static java.lang.String |
getPersistentData(java.lang.String keyId,
TaskContext context)
Reads data from persistent store. |
static java.lang.String |
getRBSExceptionLocalizedString(com.novell.rbs.RBSException ex,
PluginContext context)
Inspects an RBSException and creates localized error message. |
static java.lang.String |
getRealPath(java.lang.String relativeURL)
Gets the full path from a path relative to our webapp. |
static java.lang.String |
getSingleTarget(javax.servlet.http.HttpServletRequest request)
When using the TargetChooser widget (TC), this method returns the name of the object selected by the user. |
static java.lang.String |
getUniqueString(java.lang.String prefix,
java.lang.String postfix)
Simply creates a string that is guarenteed to be unique. |
static java.util.Properties |
getUrlParams(org.jdom.Document doc)
Allows easy access to URL params stored in plug-in XML descriptor. |
static java.util.Properties |
getUrlParamsAsProperties(org.jdom.Document doc)
Allows easy access to URL params stored in plug-in XML descriptor. |
static byte[] |
hexStringToByteArray(java.lang.String str)
Converts a string to a byte array. |
static boolean |
instanceOf(java.lang.String className,
java.lang.Class c)
Checks if the className Class is an instance of class c. |
static boolean |
isMS55(javax.servlet.http.HttpServletRequest req)
Checks to see if client device is Microsoft Internet Explorer 5.5 using the "User-Agent" string. |
static boolean |
isNN6(javax.servlet.http.HttpServletRequest req)
Checks to see if client device is Netscape Navigator 6 using the "User-Agent" string. |
static boolean |
isPalm(javax.servlet.http.HttpServletRequest req)
Checks to see if client device is a Palm Pilot using the "User-Agent" string. |
static boolean |
isTaskAssigned(java.lang.String taskId,
TaskContext context)
Checks if the user has access to the specified task. |
static java.lang.String |
join(java.util.Collection collection)
Concatenates Strings in a Collection together separated with a "," delimiter. |
static java.lang.String |
join(java.util.Collection collection,
java.lang.String delimiter)
Concatenates Strings in a Collection together separated with a delimiter. |
static org.w3c.dom.Document |
newDocument()
Instanciates an empty org.w3c.Document. |
static void |
out(org.w3c.dom.Document doc)
Deprecated. As of iManager 2.5. Will be removed. Use D.log(org.w3c.dom.Document doc) |
static java.lang.String |
pack(java.lang.String[] list,
PluginContext context)
Packs a String array into one string. |
static java.lang.String |
pack(java.lang.String value1,
java.lang.String value2,
PluginContext context)
Packs a pair of strings into one string. |
static java.util.Properties |
parseParameters(java.lang.String params)
Parses a semi-colon delimited string of key/value pairs (ex. |
static java.util.Properties |
parseParameters(java.lang.String params,
java.lang.String delimiter)
Parses a delimited string of key/value pairs. |
static java.util.HashMap |
parseParameters2(java.lang.String params)
Parses a semi-colon delimited string of key/value pairs (ex. |
static void |
refreshOV(PluginContext context)
Tasks that delete or created object should call this to ensure the object view is refreshed. |
static void |
refreshResourceFileMap(java.lang.String map)
Refreshes the filemap. |
static java.lang.String |
replaceSubString(java.lang.String source,
java.lang.String fromSubString,
java.lang.String toSubString)
Simple string replacement method. |
static java.lang.String |
replaceWith(java.lang.String strOrig,
java.lang.String strFind,
java.lang.String strReplace)
Simple string replacement method. |
static byte[] |
reverseBytes(byte[] bytes)
Reverses a byte array. |
static void |
setErrorMessage(java.lang.Throwable t,
TaskContext context)
Sets the error information in the results for the current request. |
static void |
setErrorTemplate(PluginContext context,
java.lang.String template)
Sets the JSP file to be used for rendering of response if Task.execute returns false. |
static void |
setMergeTemplate(PluginContext context,
java.lang.String template)
Sets the JSP file to be used for rendering of response. |
static void |
setMessage(java.lang.String messageMode,
java.lang.String title,
java.lang.String plainText,
java.lang.String boldText,
java.lang.String errorDetails,
TaskContext context)
Sets error/success message with plain and bold text as well as error details. |
static void |
setMessage(java.lang.String messageMode,
java.lang.String title,
java.lang.String plainText,
java.lang.String boldText,
TaskContext context)
Sets error/success message with plain and bold text. |
static void |
setMessage(java.lang.String messageMode,
java.lang.String title,
java.lang.String body,
TaskContext context)
Sets error/success message. |
static void |
setMooErrorMessage(java.util.Properties resultStrings,
java.lang.String header,
java.lang.String body,
java.util.ArrayList errors)
Sets the error messages for a Multiple Object Operation. |
static void |
setPersistentData(java.lang.String keyId,
java.lang.String data,
TaskContext context)
Sets the key and data in the user's persistent store. |
static void |
setupTargetChooser(java.lang.String[] objectTypeNames,
TaskContext context)
Must be called during the server side processing on the request before the TargetChooser widget is used. |
static void |
setupTargetChooser(TaskContext context,
java.util.Properties resultStrings,
java.lang.String[] objectTypeNames)
Deprecated. use setupTargetChooser( context, objectTypeNames ) |
static void |
sortKeyValues(java.util.ArrayList keys,
java.util.ArrayList values,
TaskContext context)
Takes two String ArrayLists, keys and values, and sorts the keys array moving the values in the value array to corresponding index positions. |
static void |
sortStringArray(java.lang.String[] myArray)
Sorts a String array while ignoring case. |
static java.lang.String[] |
split(java.lang.String s,
java.lang.String delimiter)
Tokenize a string into a String array of tokens. |
static java.lang.String |
toDisplay(java.lang.String strText)
Method to escape string for use in HTML. |
static java.lang.String |
toHexString(byte[] bytes)
Converts a byte array to a hex string. |
static java.util.Vector |
tokenize(java.lang.String params,
java.lang.String delimiter)
Tokenize a string into a Vector of tokens. |
static java.lang.String |
toOSFilterString(java.lang.String[] types)
Creates a String that can be used as an ObjectSelector filter string. |
static java.lang.String |
toScript(java.lang.String strText)
Escapes the characters single quote ('), double quote ("), backslash (\) by inserting a backslash before each occurance. |
static java.lang.String |
toTag(java.lang.String str)
Escapes chars for use in HTML tags. |
static java.lang.String |
trimQuotes(java.lang.String str)
Removes the leading and trailing quotes from a String object. |
static java.lang.String[] |
unpack(java.lang.String s,
PluginContext context)
Unpacks data packed with the pack routine. |
static java.lang.String |
urlDecode(java.lang.String s,
PluginContext context)
Decodes String that has been urlEncoded. |
static java.lang.String |
urlDecode(java.lang.String s,
java.lang.String encoding)
Decodes string that has been urlEncoded. |
static java.lang.String |
urlEncode(java.lang.String strText)
URL encodes using utf-8 encoding. |
static java.lang.String |
urlEncode(java.lang.String s,
PluginContext context)
Encodes URL for strings. |
static java.lang.String |
urlEncode(java.lang.String strText,
java.lang.String charset)
Encodes all characters except 0-9, A-Z, and a-z. |
static java.lang.String |
urlEncodePath(java.lang.String strText)
Encodes all characters except 0-9, A-Z, and a-z and '/'. |
static java.lang.String |
urlEncodePath(java.lang.String strText,
java.lang.String charset)
Encodes all characters except 0-9, A-Z, and a-z and '/'. |
static java.lang.String |
xmlDecode(java.lang.String str)
Decodes string that has been escape for XML. |
static java.lang.String |
xmlEncode(java.lang.String strText)
Escapes chars for use in XML. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public eMFrameUtils()
| Method Detail |
public static void addUnique(java.util.Collection collection,
java.util.Collection newItems)
collection - Collection to be added tonewItems - Collection to add to the existing collectionpublic static void addUnique(java.util.Collection dstCollection,
java.lang.Object[] sourceObjects)
dstCollection - Collection to be added tosourceObjects - Object array to add to Collectionpublic static final int byteToDecimal(byte b)
b - byte to convert
public static final java.lang.String concatProperties(java.util.Properties properties)
properties - Properties object containing all key/value pairs
public static final java.lang.String concatStrings(java.lang.String[] strings,
java.lang.String delimiter)
strings - String array of tokensdelimiter - String containing the delimiter between tokens (ex. ".")
public static java.lang.Throwable discoverRootException(java.lang.Throwable ex)
ex - org.apache.jasper.JasperException that wrappers a real exception
public static java.lang.String formatMessage(java.lang.String pattern,
java.lang.Object[] arguments)
pattern - String to formatarguments - Object array to pass to MessageFormat.format()
public static final java.lang.String getAccessMode(TaskContext context)
context - TaskContext of the plug-in
public static final byte[] getByteArray(java.io.InputStream is)
throws java.io.IOException
is - InputStream to read
java.io.IOExceptionpublic static final java.lang.String getClassName(org.jdom.Document doc)
doc - XML Document describing the plug-in
public static java.lang.String getConfigSetting(com.novell.nps.gadgetManager.BaseGadgetInstance task,
java.lang.String prop,
java.lang.String defaultValue)
task - BaseGadgetInstance of the task trying to get the settingprop - String containing the name of the configuration settingdefaultValue - String containing the dafault value to return if prop is not found
public static java.lang.String[] getConfigSettings(com.novell.nps.gadgetManager.BaseGadgetInstance task,
java.lang.String prop)
task - BaseGadgetInstance of the task trying to get the settingprop - String containing the name of the configuration setting
public static final java.lang.String getDisplayName(org.jdom.Document taskDoc,
PluginContext context)
taskDoc - XML Document containing the task descriptorcontext - PluginContext of the plug-in
public static final java.lang.String getDisplayName(org.jdom.Element root,
PluginContext context)
root - XML Element containing the task descriptorcontext - PluginContext of the plug-in
public static final java.lang.String getDisplayName(org.jdom.Element root,
java.lang.String tagName,
PluginContext context)
root - XML Element containing the task descriptortagName - name of tag containing key into properties filecontext - PluginContext of the plug-in
public static java.lang.String getErrorTemplate(PluginContext context)
context - PluginContext of the plug-in
setErrorTemplate(com.novell.emframe.dev.PluginContext, java.lang.String)public static final java.lang.String getExceptionMessage(java.lang.Exception e,
PluginContext context)
e - Exception to get a message forcontext - PluginContext of the plug-in
public static final java.lang.String getLocalizedString(java.lang.String strResourceFile,
java.lang.String strResId,
java.util.Locale locale)
strResourceFile - String containing the base name of the resource containing the
localized string. This is the name without the language (e.g. _en) specifier at the end.strResId - String containing the key name in the resource file whose localized value
is to be returned.locale - The current locale for the user
public static final java.lang.String getLocalizedString(java.lang.String strResourceFile,
java.lang.String strResId,
PluginContext context)
strResourceFile - String containing the base name of the resource containing the
localized string. This is the name without the language (e.g. _en) specifier at the end.strResId - String containing the key name in the resource file whose localized value
is to be returned.context - PluginContext of the plug-in
public static java.lang.String getMergeTemplate(PluginContext context)
context - PluginContext of the plug-in
setMergeTemplate(com.novell.emframe.dev.PluginContext, java.lang.String)public static final java.lang.String getModuleFromFullName(java.lang.String fullName)
fullName - String containing the module and jsp path (ex. "base/MyJsp.jsp")
public static java.lang.String getModulesBasePath()
public static final java.lang.String getPageFromFullName(java.lang.String fullName)
fullName - String containing the module and jsp path (ex. "base/MyJsp.jsp")
public static java.lang.String getPersistentData(java.lang.String keyId,
TaskContext context)
keyId - String containing the keycontext - TaskContext of the plug-in
setPersistentData(java.lang.String, java.lang.String, com.novell.emframe.dev.TaskContext)public static final java.lang.String getRBSExceptionLocalizedString(com.novell.rbs.RBSException ex,
PluginContext context)
ex - the Exceptioncontext - PluginContext of the plug-in
public static java.lang.String getRealPath(java.lang.String relativeURL)
relativeURL - String containing the relative URL (ex. "/")
public static final java.lang.String getSingleTarget(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest containing posted data from the target chooser
public static final java.lang.String getUniqueString(java.lang.String prefix,
java.lang.String postfix)
prefix - String containing the prefixpostfix - String containing the postfix
public static final java.util.Properties getUrlParams(org.jdom.Document doc)
doc - XML Document containing the plug-in descriptor
public static final java.util.Properties getUrlParamsAsProperties(org.jdom.Document doc)
doc - XML Document containing the plug-in descriptor
public static final byte[] hexStringToByteArray(java.lang.String str)
throws java.lang.NumberFormatException
The string is parsed such that each character represents a single nibble in the byte array. Valid characters are [0-9a-fA-F].
str - String which is parsed
java.lang.NumberFormatExceptionpublic static final boolean instanceOf(java.lang.String className,
java.lang.Class c)
className - String containing class namec - Class object to check if is an instance of className
public static boolean isMS55(javax.servlet.http.HttpServletRequest req)
req - HttpServletRequest
public static boolean isNN6(javax.servlet.http.HttpServletRequest req)
req - HttpServletRequest
public static boolean isPalm(javax.servlet.http.HttpServletRequest req)
req - HttpServletRequest
public static final boolean isTaskAssigned(java.lang.String taskId,
TaskContext context)
taskId - String containing taskId to check for access (ex. "base.ModifyUser")context - TaskContext of the plug-in
public static final java.lang.String join(java.util.Collection collection)
collection - Collection object of Strings
public static final java.lang.String join(java.util.Collection collection,
java.lang.String delimiter)
collection - Collection object of Stringsdelimiter - String containing the delimiter between tokens (ex. ".")
public static final org.w3c.dom.Document newDocument()
public static final void out(org.w3c.dom.Document doc)
doc - XML Document to outputpublic static final java.lang.String pack(java.lang.String[] list,
PluginContext context)
list - String array containing the valuescontext - PluginContext of the plug-in
public static final java.lang.String pack(java.lang.String value1,
java.lang.String value2,
PluginContext context)
value1 - String containing the first valuevalue2 - String containing the second valuecontext - PluginContext of the plug-in
public static final java.util.Properties parseParameters(java.lang.String params)
params - String containing semi-colon delimited string of key/value pairs (ex. key1=val1;key2=val2)
public static final java.util.Properties parseParameters(java.lang.String params,
java.lang.String delimiter)
params - A delimited string of key/value pairs; for example: "key1=val1;key2=val2"delimiter - The delimiter between the key/value pairs; for example: ";"
public static final java.util.HashMap parseParameters2(java.lang.String params)
params - String containing semi-colon delimited string of key/value pairs (ex. "key1=val1;key2=val2")
public static final void refreshOV(PluginContext context)
context - PluginContext of the plug-inpublic static void refreshResourceFileMap(java.lang.String map)
throws java.io.FileNotFoundException
map - String containing the name of the file map (usually this is the module id)
java.io.FileNotFoundExceptionpublic static java.lang.String replaceSubString(java.lang.String source,
java.lang.String fromSubString,
java.lang.String toSubString)
source - Original stringfromSubString - String containing substring to replace in the original stringtoSubString - String containing the replacement substring
public static java.lang.String replaceWith(java.lang.String strOrig,
java.lang.String strFind,
java.lang.String strReplace)
strOrig - Original stringstrFind - String to find in original stringstrReplace - String to replace strFind in origial string
public static byte[] reverseBytes(byte[] bytes)
bytes - The byte array to reverse
public static void setErrorMessage(java.lang.Throwable t,
TaskContext context)
header parameter, andbody parameter.
t - The exception with the error to display. If the exception is an SPI excetion, the error messages
are retrieved from it and a result string named GeneralMsg.Error.Detail is added which contains
the name of the HTML help file explaining the error. If the exception is a PluginException,
the error messages from the root exception (in the case of nested exceptions) are retrieved. If
the exception is a NamespaceException, an appropriate message is generated. For other
exceptions, a general messages is used, and a stackTrace is added to a string named stackTrace.context - TaskContext of the plug-inpublic static void setErrorTemplate(PluginContext context,
java.lang.String template)
context - PluginContext of the plug-intemplate - String containing the .jsp file to set as the "error" parameter on the HttpServletRequestgetErrorTemplate(com.novell.emframe.dev.PluginContext)public static void setMergeTemplate(PluginContext context,
java.lang.String template)
context - PluginContext of the plug-intemplate - String containing the .jsp file to set as the "merge" parameter on the HttpServletRequestgetMergeTemplate(com.novell.emframe.dev.PluginContext)public static final void setMessage(java.lang.String messageMode,
java.lang.String title,
java.lang.String plainText,
java.lang.String boldText,
java.lang.String errorDetails,
TaskContext context)
messageMode - String containing "success", "error", or "fatal"title - String containing localized title of errorplainText - String containing localized body of error; should contain a {0} to be replaced with boldboldText - String containing part of message to be boldederrorDetails - String containing more details of error messagecontext - TaskContext of the plug-inpublic static final void setMessage(java.lang.String messageMode,
java.lang.String title,
java.lang.String plainText,
java.lang.String boldText,
TaskContext context)
messageMode - String containing "success", "error", or "fatal"title - String containing localized title of errorplainText - String containing localized body of error; should contain a {0} to be replaced with boldboldText - String containing part of message to be boldedcontext - TaskContext of the plug-inpublic static final void setMessage(java.lang.String messageMode,
java.lang.String title,
java.lang.String body,
TaskContext context)
messageMode - String containing "success", "error", or "fatal"title - String containing localized title of errorbody - String containing localized body of errorcontext - TaskContext of the plug-inpublic static void setMooErrorMessage(java.util.Properties resultStrings,
java.lang.String header,
java.lang.String body,
java.util.ArrayList errors)
resultStrings - Properties object containing the list of strings available to the template during rendering.header - String containing the title of the errorbody - String containing the error message to display as the body of the messageerrors - ArrayList of error messages. This should be a list of arrays. Each array in the list should have
three elements.public static void setPersistentData(java.lang.String keyId,
java.lang.String data,
TaskContext context)
keyId - String containing the keydata - String containing the value datacontext - TaskContext of the plug-ingetPersistentData(java.lang.String, com.novell.emframe.dev.TaskContext)public static final void setupTargetChooser(java.lang.String[] objectTypeNames,
TaskContext context)
objectTypeNames - String array containing case sensitive names of the object classes that are valid for
the TargetChooser (* for all)context - TaskContext of the plug-inpublic static final void setupTargetChooser(TaskContext context,
java.util.Properties resultStrings,
java.lang.String[] objectTypeNames)
objectTypeNames - String array containing case sensitive names of the object classes that are valid for
the TargetChooser (* for all)resultStrings - Properties object no longer usedcontext - TaskContext of the plug-insetupTargetChooser(java.lang.String[], com.novell.emframe.dev.TaskContext)public static final void sortKeyValues(java.util.ArrayList keys,
java.util.ArrayList values,
TaskContext context)
keys - An ArrayList of String entries to be sortedvalues - An ArrayList of corresponding string valuescontext - TaskContext of the plug-inpublic static final void sortStringArray(java.lang.String[] myArray)
myArray - String array to be sortedpublic static final java.lang.String[] split(java.lang.String s,
java.lang.String delimiter)
s - String containing tokens seperated by delimiter (ex. "token1.token2.token3")delimiter - String containing the delimiter between tokens (ex. ".")
public static java.lang.String toDisplay(java.lang.String strText)
strText - String to escape
public static final java.lang.String toHexString(byte[] bytes)
bytes - byte array of values
public static final java.util.Vector tokenize(java.lang.String params,
java.lang.String delimiter)
params - String containing tokens seperated by delimiter (ex. "token1.token2.token3")delimiter - String containing the delimiter between tokens (ex. ".")
public static java.lang.String toOSFilterString(java.lang.String[] types)
types - String array of object class names
public static java.lang.String toScript(java.lang.String strText)
strText - String containing text to encode
public static java.lang.String toTag(java.lang.String str)
str - String to escape
public static final java.lang.String trimQuotes(java.lang.String str)
If the String has a leading and a trailing quote character, the quotes will be removed.
str - String that will have its quotes removed
public static final java.lang.String[] unpack(java.lang.String s,
PluginContext context)
s - String containing a valid packed string. The empty string is not valid.context - PluginContext of the plug-in
public static final java.lang.String urlDecode(java.lang.String s,
PluginContext context)
s - String to decodecontext - PluginContext used to get the character encoding. If null then
the default of utf-8 will be used.
urlEncode(java.lang.String, java.lang.String)public static final java.lang.String urlDecode(java.lang.String s,
java.lang.String encoding)
s - String to decodeencoding - String containing the encoding to use. If this is null, "8859_1" will be used.
urlEncode(java.lang.String, java.lang.String)public static java.lang.String urlEncode(java.lang.String strText)
strText - String to encode
public static final java.lang.String urlEncode(java.lang.String s,
PluginContext context)
s - String to encodecontext - PluginContext used to get the character encoding. If null then
the default of utf-8 will be used.
urlDecode(java.lang.String, com.novell.emframe.dev.PluginContext)public static java.lang.String urlEncode(java.lang.String strText,
java.lang.String charset)
strText - String to encodecharset - String containing character set for encoding
public static java.lang.String urlEncodePath(java.lang.String strText)
strText - String to encode
public static java.lang.String urlEncodePath(java.lang.String strText,
java.lang.String charset)
strText - String to encodecharset - String containing charset to use for encoding
public static java.lang.String xmlDecode(java.lang.String str)
str - String to decode
public static java.lang.String xmlEncode(java.lang.String strText)
strText - String to escape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||