Package org.apache.commons.vfs2.util
Class URIBitSets
java.lang.Object
org.apache.commons.vfs2.util.URIBitSets
Internal URI encoding
BitSet definitions.
This was forked from the BitSets in org.apache.commons.httpclient.URI, in order to not be dependent
on HttpClient v3 API, when generating and handling GenericURLFileNames, but it should work with any different
HTTP backend provider implementations.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.apache.commons.lang3.util.FluentBitSetURI absolute path.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for absoluteURI.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the abs_path.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the authority component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the fragment component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the host component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the IPv6reference component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the opaque_part.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the query component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the reg_name.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the rel_path.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the userinfo component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for the authority component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed within the path.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed within the query component.(package private) static final org.apache.commons.lang3.util.FluentBitSetThose characters that are allowed for within the userinfo component.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for alpha.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for alphanum (join of alpha & digit).(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for authority.private static final intBitSet for control.private static final int(package private) static final org.apache.commons.lang3.util.FluentBitSet(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for delims.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for digit.(package private) static final org.apache.commons.lang3.util.FluentBitSetDisallowed opaque_part before escaping.(package private) static final org.apache.commons.lang3.util.FluentBitSetDisallowed rel_path before escaping.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for domainlabel.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for escaped.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for fragment (alias for uric).(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for hex.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for hier_part.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for host.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for hostname.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for hostport.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitset that combines digit and dot fo IPv$address.(package private) static final org.apache.commons.lang3.util.FluentBitSetRFC 2373.(package private) static final org.apache.commons.lang3.util.FluentBitSetRFC 2732, 2373.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for mark.private static final int(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for net_path.(package private) static final org.apache.commons.lang3.util.FluentBitSetURI bitset that combines uric_no_slash and uric.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for param (alias for pchar).(package private) static final org.apache.commons.lang3.util.FluentBitSetURI bitset that combines absolute path and opaque part.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for path segments.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for pchar.(package private) static final org.apache.commons.lang3.util.FluentBitSetThe percent "%" character always has the reserved purpose of being the escape indicator, it must be escaped as "%25" in order to be used as data within a URI.(package private) static final org.apache.commons.lang3.util.FluentBitSetPort, a logical alias for digit.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for query (alias for uric).(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for reg_name.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for rel_path.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for rel_segment.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for relativeURI.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for reserved.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for scheme.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for segment.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitset for server.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for space.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for toplabel.(package private) static final org.apache.commons.lang3.util.FluentBitSetData characters that are allowed in a URI but do not have a reserved purpose are called unreserved.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for unwise.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for URI-reference.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for uric.(package private) static final org.apache.commons.lang3.util.FluentBitSetURI bitset for encoding typical non-slash characters.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitset for userinfo.(package private) static final org.apache.commons.lang3.util.FluentBitSetBitSet for within the userinfo component like user and password. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PERCENT
static final org.apache.commons.lang3.util.FluentBitSet PERCENTThe percent "%" character always has the reserved purpose of being the escape indicator, it must be escaped as "%25" in order to be used as data within a URI. -
DIGIT
static final org.apache.commons.lang3.util.FluentBitSet DIGITBitSet for digit.digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
-
ALPHA
static final org.apache.commons.lang3.util.FluentBitSet ALPHABitSet for alpha.alpha = lowalpha | upalpha
-
ALPHANUM
static final org.apache.commons.lang3.util.FluentBitSet ALPHANUMBitSet for alphanum (join of alpha & digit).alphanum = alpha | digit
-
HEX
static final org.apache.commons.lang3.util.FluentBitSet HEXBitSet for hex.hex = digit | "A" | "B" | "C" | "D" | "E" | "F" | "a" | "b" | "c" | "d" | "e" | "f"
-
ESCAPED
static final org.apache.commons.lang3.util.FluentBitSet ESCAPEDBitSet for escaped.escaped = "%" hex hex
-
MARK
static final org.apache.commons.lang3.util.FluentBitSet MARKBitSet for mark.mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")" -
UNRESERVED
static final org.apache.commons.lang3.util.FluentBitSet UNRESERVEDData characters that are allowed in a URI but do not have a reserved purpose are called unreserved.unreserved = alphanum | mark
-
RESERVED
static final org.apache.commons.lang3.util.FluentBitSet RESERVEDBitSet for reserved.reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
-
URIC
static final org.apache.commons.lang3.util.FluentBitSet URICBitSet for uric.uric = reserved | unreserved | escaped
-
FRAGMENT
static final org.apache.commons.lang3.util.FluentBitSet FRAGMENTBitSet for fragment (alias for uric).fragment = *uric
-
QUERY
static final org.apache.commons.lang3.util.FluentBitSet QUERYBitSet for query (alias for uric).query = *uric
-
PCHAR
static final org.apache.commons.lang3.util.FluentBitSet PCHARBitSet for pchar.pchar = unreserved | escaped | ":" | "@" | "&" | "=" | "+" | "$" | ","
-
PARAM
static final org.apache.commons.lang3.util.FluentBitSet PARAMBitSet for param (alias for pchar).param = *pchar
-
SEGMENT
static final org.apache.commons.lang3.util.FluentBitSet SEGMENTBitSet for segment.segment = *pchar *( ";" param )
-
PATH_SEGMENTS
static final org.apache.commons.lang3.util.FluentBitSet PATH_SEGMENTSBitSet for path segments.path_segments = segment *( "/" segment )
-
ABS_PATH
static final org.apache.commons.lang3.util.FluentBitSet ABS_PATHURI absolute path.abs_path = "/" path_segments
-
URIC_NO_SLASH
static final org.apache.commons.lang3.util.FluentBitSet URIC_NO_SLASHURI bitset for encoding typical non-slash characters.uric_no_slash = unreserved | escaped | ";" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
-
OPAQUE_PART
static final org.apache.commons.lang3.util.FluentBitSet OPAQUE_PARTURI bitset that combines uric_no_slash and uric.opaque_part = uric_no_slash * uric
-
PATH
static final org.apache.commons.lang3.util.FluentBitSet PATHURI bitset that combines absolute path and opaque part.path = [ abs_path | opaque_part ]
-
PORT
static final org.apache.commons.lang3.util.FluentBitSet PORTPort, a logical alias for digit. -
IPV4ADDRESS
static final org.apache.commons.lang3.util.FluentBitSet IPV4ADDRESSBitset that combines digit and dot fo IPv$address.IPv4address = 1*digit "." 1*digit "." 1*digit "." 1*digit
-
IPV6ADDRESS
static final org.apache.commons.lang3.util.FluentBitSet IPV6ADDRESSRFC 2373.IPv6address = hexpart [ ":" IPv4address ]
-
IPV6REFERENCE
static final org.apache.commons.lang3.util.FluentBitSet IPV6REFERENCERFC 2732, 2373.IPv6reference = "[" IPv6address "]"
-
TOPLABEL
static final org.apache.commons.lang3.util.FluentBitSet TOPLABELBitSet for toplabel.toplabel = alpha | alpha *( alphanum | "-" ) alphanum
-
DOMAINLABEL
static final org.apache.commons.lang3.util.FluentBitSet DOMAINLABELBitSet for domainlabel.domainlabel = alphanum | alphanum *( alphanum | "-" ) alphanum
-
HOSTNAME
static final org.apache.commons.lang3.util.FluentBitSet HOSTNAMEBitSet for hostname.hostname = *( domainlabel "." ) toplabel [ "." ]
-
HOST
static final org.apache.commons.lang3.util.FluentBitSet HOSTBitSet for host.host = hostname | IPv4address | IPv6reference
-
HOSTPORT
static final org.apache.commons.lang3.util.FluentBitSet HOSTPORTBitSet for hostport.hostport = host [ ":" port ]
-
USERINFO
static final org.apache.commons.lang3.util.FluentBitSet USERINFOBitset for userinfo.userinfo = *( unreserved | escaped | ";" | ":" | "&" | "=" | "+" | "$" | "," ) -
WITHIN_USERRINFO
static final org.apache.commons.lang3.util.FluentBitSet WITHIN_USERRINFOBitSet for within the userinfo component like user and password. -
SERVER
static final org.apache.commons.lang3.util.FluentBitSet SERVERBitset for server.server = [ [ userinfo "@" ] hostport ]
-
REG_NAME
static final org.apache.commons.lang3.util.FluentBitSet REG_NAMEBitSet for reg_name.reg_name = 1 * (unreserved | escaped | "$" | "," | ";" | ":" | "@" | "&" | "=" | "+")
-
AUTHORITY
static final org.apache.commons.lang3.util.FluentBitSet AUTHORITYBitSet for authority.authority = server | reg_name
-
SCHEME
static final org.apache.commons.lang3.util.FluentBitSet SCHEMEBitSet for scheme.scheme = alpha * (alpha | digit | "+" | "-" | ".")
-
REL_SEGMENT
static final org.apache.commons.lang3.util.FluentBitSet REL_SEGMENTBitSet for rel_segment.rel_segment = 1 * (unreserved | escaped | ";" | "@" | "&" | "=" | "+" | "$" | ",")
-
REL_PATH
static final org.apache.commons.lang3.util.FluentBitSet REL_PATHBitSet for rel_path.rel_path = rel_segment[abs_path]
-
NET_PATH
static final org.apache.commons.lang3.util.FluentBitSet NET_PATHBitSet for net_path.net_path = "//" authority [ abs_path ]
-
HIER_PART
static final org.apache.commons.lang3.util.FluentBitSet HIER_PARTBitSet for hier_part.hier_part = ( net_path | abs_path ) [ "?" query ]
-
RELATIVEURI
static final org.apache.commons.lang3.util.FluentBitSet RELATIVEURIBitSet for relativeURI.relativeURI = ( net_path | abs_path | rel_path ) [ "?" query ]
-
ABSOLUTEURI
static final org.apache.commons.lang3.util.FluentBitSet ABSOLUTEURIBitSet for absoluteURI.absoluteURI = scheme ":" ( hier_part | opaque_part )
-
URI_REFERENCE
static final org.apache.commons.lang3.util.FluentBitSet URI_REFERENCEBitSet for URI-reference.URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
-
SPACE
static final org.apache.commons.lang3.util.FluentBitSet SPACEBitSet for space. -
DELIMS
static final org.apache.commons.lang3.util.FluentBitSet DELIMSBitSet for delims. -
UNWISE
static final org.apache.commons.lang3.util.FluentBitSet UNWISEBitSet for unwise. -
DISALLOWED_REL_PATH
static final org.apache.commons.lang3.util.FluentBitSet DISALLOWED_REL_PATHDisallowed rel_path before escaping. -
DISALLOWED_OPAQUE_PART
static final org.apache.commons.lang3.util.FluentBitSet DISALLOWED_OPAQUE_PARTDisallowed opaque_part before escaping. -
ALLOWED_AUTHORITY
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_AUTHORITYThose characters that are allowed for the authority component. -
ALLOWED_OPAQUE_PART
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_OPAQUE_PARTThose characters that are allowed for the opaque_part. -
ALLOWED_REG_NAME
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_REG_NAMEThose characters that are allowed for the reg_name. -
ALLOWED_USER_INFO
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_USER_INFOThose characters that are allowed for the userinfo component. -
ALLOWED_WITHIN_USERINFO
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_WITHIN_USERINFOThose characters that are allowed for within the userinfo component. -
ALLOWED_IPV6REFERENCE
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_IPV6REFERENCEThose characters that are allowed for the IPv6reference component. The characters '[', ']' in IPv6reference should be excluded. -
ALLOWED_HOST
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_HOSTThose characters that are allowed for the host component. The characters '[', ']' in IPv6reference should be excluded. -
ALLOWED_WITHIN_AUTHORITY
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_WITHIN_AUTHORITYThose characters that are allowed for the authority component. -
ALLOWED_ABS_PATH
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_ABS_PATHThose characters that are allowed for the abs_path. -
ALLOWED_REL_PATH
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_REL_PATHThose characters that are allowed for the rel_path. -
ALLOWED_WITHIN_PATH
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_WITHIN_PATHThose characters that are allowed within the path. -
ALLOWED_QUERY
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_QUERYThose characters that are allowed for the query component. -
ALLOWED_WITHIN_QUERY
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_WITHIN_QUERYThose characters that are allowed within the query component. -
ALLOWED_FRAGMENT
static final org.apache.commons.lang3.util.FluentBitSet ALLOWED_FRAGMENTThose characters that are allowed for the fragment component. -
CHARACTER_DEL
private static final int CHARACTER_DELBitSet for control.- See Also:
-
CHARACTER_US
private static final int CHARACTER_US- See Also:
-
CONTROL
static final org.apache.commons.lang3.util.FluentBitSet CONTROL -
NBITS
private static final int NBITS- See Also:
-
-
Constructor Details
-
URIBitSets
private URIBitSets()
-
-
Method Details
-
bitSet
static org.apache.commons.lang3.util.FluentBitSet bitSet() -
bitSet
private static org.apache.commons.lang3.util.FluentBitSet bitSet(int... bitIndexArray)
-