Package com.atlassian.jira.util
Class JiraUrlCodec
java.lang.Object
com.atlassian.jira.util.JiraUrlCodec
Class to wrap around the encoding of query strings. This has ordinarily been done by using the JIRA encoding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringURL decode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist, the system encoding.static StringURL decode the passed value using the passed character encoding, or if the encoding doesn't exist, the system encoding.static StringURL encode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist, the system encoding.static StringURL encode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist, the system encoding.static StringURL encode the passed value using the passed character encoding, or if the encoding doesn't exist, the system encoding.static StringURL encode the passed value using the passed character encoding, or if the encoding doesn't exist, the system encoding.
-
Constructor Details
-
JiraUrlCodec
public JiraUrlCodec()
-
-
Method Details
-
encode
URL encode the passed value using the passed character encoding, or if the encoding doesn't exist, the system encoding.- Parameters:
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 '+'.- Returns:
- the encoded value.
-
encode
URL encode the passed value using the passed character encoding, or if the encoding doesn't exist, the system encoding. Spaces are encoded as the '+' character.- Parameters:
value- the value to encode.encoding- the character encoding to use- Returns:
- the encoded value.
-
encode
URL encode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist, the system encoding. Spaces are encoded as the '+' character.- Parameters:
value- the value to encode.- Returns:
- the encoded value.
-
encode
URL encode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist, the system encoding.- Parameters:
value- the value to encode.spacesEncodedAsHexValue- if true spaces are encoded with the the hex value '%20', otherwise if false then the character '+'.- Returns:
- the encoded value.
-
decode
URL decode the passed value using the passed character encoding, or if the encoding doesn't exist, the system encoding.- Parameters:
value- the value to decode.encoding- the character encoding to use- Returns:
- the decoded value.
-
decode
URL decode the passed value using the configured JIRA character encoding, or if the encoding doesn't exist, the system encoding.- Parameters:
value- the value to decode.- Returns:
- the decoded value.
-