public class URLUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String | decode(String s, String enc, boolean decodeSlash, StringBuilder buffer) Decodes a URL. |
static String | normalizeSlashes(String path) Adds a '/' prefix to the beginning of a path if one isn't present and removes trailing slashes if any are present. |
static void | parsePathParms(String string, HttpServerExchange exchange, String charset, boolean doDecode, int maxParameters) |
static void | parseQueryString(String string, HttpServerExchange exchange, String charset, boolean doDecode, int maxParameters) |
public static void parseQueryString(String string, HttpServerExchange exchange, String charset, boolean doDecode, int maxParameters) throws ParameterLimitException
ParameterLimitException
public static void parsePathParms(String string, HttpServerExchange exchange, String charset, boolean doDecode, int maxParameters) throws ParameterLimitException
ParameterLimitException
public static String decode(String s, String enc, boolean decodeSlash, StringBuilder buffer)
s
- The string to decodeenc
- The encodingdecodeSlash
- If slash characters should be decodedbuffer
- The string builder to use as a buffer.Copyright © 2017 JBoss by Red Hat. All rights reserved.