public class JiraUrlCodec extends Object
| Constructor and Description |
|---|
JiraUrlCodec() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String value)
URL decode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist,
the system encoding.
|
static String |
decode(String value,
String encoding)
URL decode the passed value using the passed character encoding, or if the encoding doesn't exist, the system
encoding.
|
static String |
encode(String value)
URL encode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist,
the system encoding.
|
static String |
encode(String value,
boolean spacesEncodedasHexValue)
URL encode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist,
the system encoding.
|
static String |
encode(String value,
String encoding)
URL encode the passed value using the passed character encoding, or if the encoding doesn't exist, the system
encoding.
|
static String |
encode(String value,
String encoding,
boolean spacesEncodedasHexValue)
URL encode the passed value using the passed character encoding, or if the encoding doesn't exist, the system
encoding.
|
public static String encode(String value, String encoding, boolean spacesEncodedasHexValue)
value - the value to encode.encoding - the character encoding to usespacesEncodedasHexValue - if true spaces are encoded with the the hex value '%20', otherwise if false then the character '+'.public static String encode(String value, String encoding)
value - the value to encode.encoding - the character encoding to usepublic static String encode(String value)
value - the value to encode.public static String encode(String value, boolean spacesEncodedasHexValue)
spacesEncodedasHexValue - if true spaces are encoded with the the hex value '%20', otherwise if false then the character '+'.value - the value to encode.public static String decode(String value, String encoding)
value - the value to decode.encoding - the character encoding to useCopyright © 2002-2016 Atlassian. All Rights Reserved.