|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.web.Utils
Constructor Summary | |
Utils()
|
Method Summary | |
private static byte |
convertHexDigit(byte b)
Convert a byte character value to hexidecimal digit value. |
static java.lang.String |
formEncode(java.lang.String value)
|
static byte[] |
getContent(java.util.List filelist,
java.lang.String name)
|
static java.lang.String |
getFileName(java.util.List filelist,
java.lang.String name)
|
static java.lang.String |
getPage(XWikiRequest request,
java.lang.String defaultpage)
|
static java.lang.String |
getRedirect(java.lang.String action,
XWikiContext context)
|
static java.lang.String |
getRedirect(XWikiRequest request,
java.lang.String defaultRedirect)
|
static java.util.Map |
parseParameters(byte[] data,
java.lang.String encoding)
Append request parameters from the specified String to the specified Map. |
static java.util.Map |
parseParameters(java.lang.String data,
java.lang.String encoding)
Append request parameters from the specified String to the specified Map. |
static void |
parseTemplate(java.lang.String template,
boolean write,
XWikiContext context)
|
static void |
parseTemplate(java.lang.String template,
XWikiContext context)
|
static XWikiContext |
prepareContext(java.lang.String action,
XWikiRequest request,
XWikiResponse response,
XWikiEngineContext engine_context)
|
private static void |
putMapEntry(java.util.Map map,
java.lang.String name,
java.lang.String value)
Put name value pair in map. |
static java.lang.String |
SQLFilter(java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static void parseTemplate(java.lang.String template, XWikiContext context) throws XWikiException
XWikiException
public static void parseTemplate(java.lang.String template, boolean write, XWikiContext context) throws XWikiException
XWikiException
public static java.lang.String getRedirect(XWikiRequest request, java.lang.String defaultRedirect)
public static java.lang.String getRedirect(java.lang.String action, XWikiContext context)
public static java.lang.String getPage(XWikiRequest request, java.lang.String defaultpage)
public static java.lang.String getFileName(java.util.List filelist, java.lang.String name)
public static byte[] getContent(java.util.List filelist, java.lang.String name) throws XWikiException
XWikiException
public static XWikiContext prepareContext(java.lang.String action, XWikiRequest request, XWikiResponse response, XWikiEngineContext engine_context) throws XWikiException
XWikiException
public static java.util.Map parseParameters(java.lang.String data, java.lang.String encoding) throws java.io.UnsupportedEncodingException
IMPLEMENTATION NOTE: URL decoding is performed individually on the parsed name and value elements, rather than on the entire query string ahead of time, to properly deal with the case where the name or value includes an encoded "=" or "&" character that would otherwise be interpreted as a delimiter.
data
- Input string containing request parameters
java.lang.IllegalArgumentException
- if the data is malformed
Code borrowed from Apache Tomcat 5.0
java.io.UnsupportedEncodingException
public static java.util.Map parseParameters(byte[] data, java.lang.String encoding) throws java.io.UnsupportedEncodingException
IMPLEMENTATION NOTE: URL decoding is performed individually on the parsed name and value elements, rather than on the entire query string ahead of time, to properly deal with the case where the name or value includes an encoded "=" or "&" character that would otherwise be interpreted as a delimiter. NOTE: byte array data is modified by this method. Caller beware.
data
- Input string containing request parametersencoding
- Encoding to use for converting hex
java.io.UnsupportedEncodingException
- if the data is malformed
Code borrowed from Apache Tomcat 5.0private static byte convertHexDigit(byte b)
b
- the character value byte
Code borrowed from Apache Tomcat 5.0private static void putMapEntry(java.util.Map map, java.lang.String name, java.lang.String value)
public static java.lang.String formEncode(java.lang.String value)
public static java.lang.String SQLFilter(java.lang.String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |