|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.auth.oauth.URLUtils
public class URLUtils
URL-encoding utility for each URL part according to the RFC specs
http://www.ietf.org/rfc/rfc3986.txt
Field Summary | |
---|---|
static java.util.BitSet |
ALPHA
alpha = lowalpha | upalpha |
static java.util.BitSet |
ALPHANUM
alphanum = alpha | digit |
static java.util.BitSet |
DIGIT
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" |
static java.util.BitSet |
FRAGMENT
fragment = pchar / "/" / "?" |
static java.util.BitSet |
GEN_DELIMS
gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" |
static java.util.BitSet |
LOW_ALPHA
lowalpha = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" |
static java.util.BitSet |
PATH_PARAM_NAME
path_param_name = pchar |
static java.util.BitSet |
PATH_PARAM_VALUE
path_param_value = pchar |
static java.util.BitSet |
PATH_SEGMENT
path_segment = pchar |
static java.util.BitSet |
PCHAR
pchar = unreserved | escaped | sub-delims | ":" | "@" Note: we don't allow escaped here since we will escape it ourselves, so we don't want to allow them in the unescaped sequences |
static java.util.BitSet |
QUERY
query = pchar / "/" / "?" |
static java.util.BitSet |
RESERVED
reserved = gen-delims | sub-delims |
static java.util.BitSet |
SUB_DELIMS
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" |
static java.util.BitSet |
UNRESERVED
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" |
static java.util.BitSet |
UP_ALPHA
upalpha = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" |
Constructor Summary | |
---|---|
URLUtils()
|
Method Summary | |
---|---|
static java.lang.String |
encodePart(java.lang.String part,
java.lang.String charset,
java.util.BitSet allowed)
Encodes a string to be a valid URI part, with the given characters allowed. |
static java.lang.String |
encodePathParamName(java.lang.String pathParamName)
Encodes a string to be a valid path parameter name, which means it can contain PCHAR* without "=" or ";". |
static java.lang.String |
encodePathParamValue(java.lang.String pathParamValue)
Encodes a string to be a valid path parameter value, which means it can contain PCHAR* without ";". |
static java.lang.String |
encodePathSegment(java.lang.String pathSegment)
Encodes a string to be a valid path segment, which means it can contain PCHAR* only (do not put path parameters or they will be escaped. |
static java.lang.String |
encodeQueryNameOrValue(java.lang.String queryNameOrValue)
Encodes a string to be a valid query, which means it can contain PCHAR* | "?" | "/" without "=" | "&" | "+". |
static java.lang.String |
encodeQueryNameOrValueNoParen(java.lang.String queryNameOrValueNoParen)
Encodes a string to be a valid query with no parenthesis, which means it can contain PCHAR* | "?" | "/" without "=" | "&" | "+" | "(" | ")". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.BitSet GEN_DELIMS
public static final java.util.BitSet SUB_DELIMS
public static final java.util.BitSet RESERVED
public static final java.util.BitSet LOW_ALPHA
public static final java.util.BitSet UP_ALPHA
public static final java.util.BitSet ALPHA
public static final java.util.BitSet DIGIT
public static final java.util.BitSet ALPHANUM
public static final java.util.BitSet UNRESERVED
public static final java.util.BitSet PCHAR
public static final java.util.BitSet PATH_SEGMENT
public static final java.util.BitSet PATH_PARAM_NAME
public static final java.util.BitSet PATH_PARAM_VALUE
public static final java.util.BitSet QUERY
public static final java.util.BitSet FRAGMENT
Constructor Detail |
---|
public URLUtils()
Method Detail |
---|
public static java.lang.String encodePathParamName(java.lang.String pathParamName)
public static java.lang.String encodePathParamValue(java.lang.String pathParamValue)
public static java.lang.String encodeQueryNameOrValue(java.lang.String queryNameOrValue)
public static java.lang.String encodeQueryNameOrValueNoParen(java.lang.String queryNameOrValueNoParen)
public static java.lang.String encodePathSegment(java.lang.String pathSegment)
public static java.lang.String encodePart(java.lang.String part, java.lang.String charset, java.util.BitSet allowed) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |