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) |
static void | parseQueryString(String string, HttpServerExchange exchange, String charset, boolean doDecode) |
public static void parseQueryString(String string, HttpServerExchange exchange, String charset, boolean doDecode)
public static void parsePathParms(String string, HttpServerExchange exchange, String charset, boolean doDecode)
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 © 2015 JBoss by Red Hat. All rights reserved.