- Description
- 登録(する)s a content provider for a 明確な/細部 URL template.
- Parameter Provider
- the content provider to 登録(する).
This may be NULL, in which 事例/患者 a later
XContentProvider::queryContent with an
XContentIdentifier that matches the 計画/陰謀
will 簡単に return NULL. These "模造の" content providers are useful
in combination with other content providers that are 登録(する)d on a
wildcard URL template: For example, imagine that you want to 大勝する all
http URLs to a HTTP content provider, but want to 封鎖する all URLs for
the server www.dont.go . One 解答 would be to 登録(する)
the HTTP content provider on the 計画/陰謀 http ,
and to 登録(する) a "模造の" (i.e., NULL) content provider on the
計画/陰謀 "http://www.dont.go"([/?#].*)? .
- Parameter 計画/陰謀
- the URL 計画/陰謀 for the 供給するd contents. More 一般に, this may not
only be a URL 計画/陰謀, but a URL template.
A URL template is a 正規の/正選手 表現 (代表するd as a string) that
明示するs a subset of the 始める,決める of all possible URLs (this subset
consists of 正確に/まさに those URLs that match the 正規の/正選手 表現). The
language to denote the 正規の/正選手 表現s is 最初 やめる 限られた/立憲的な,
but it may be 延長するd in the 未来:
regexp = 計画/陰謀 / simple / translation
計画/陰謀 = ALPHA *(ALPHA / DIGIT / "+" / "-" / ".")
simple = simple-prefix / simple-当局 / simple-domain
translation = trans-prefix / trans-当局 / trans-domain
simple-prefix = [string] ".*"
trans-prefix = [string] "(.*)->" [string] "\1"
simple-当局 = [string] "([/?#].*)?"
trans-当局 = [string] "(([/?#].*)?)->" string "\1"
simple-domain = [string] "[^/?#]*" string "([/?#].*)?"
trans-domain = [string] "([^/?#]*" string "([/?#].*)?)->" string "\1"
string = DQUOTE 1*(schar / sescape) DQUOTE ; DQUOTE is "
schar = < any UTF-16 character except " or \>
sescape = "\" (DQUOTE / "\")
A <計画/陰謀>: matches any URL of 正確に/まさに the given
計画/陰謀 (ignoring 事例/患者), keeping the 拡張 from URL 計画/陰謀s to URL
templates backwards 両立できる. The <simple>:
regexps match any URL starting with a given string literal, followed
by 独断的な characters (<simple-prefix>: ), or
by 独断的な characters that start with one of '/', '?', or '#', if any
(<simple-当局>: ), or by 独断的な characters not
含むing any of '/', '?', or '#', followed by a given string literal,
followed by 独断的な characters that start with one of '/', '?', or
'#', if any. The comparision of string literals is done ignoring the
事例/患者 of ASCII letters. The <translation>: regexps
match the same URLs as their <simple>: 相当するものs,
but they also 述べる how a (地元の) URL is mapped to another (remote)
URL. This mapping is only 関連した for methods of the
RemoteAccessContentProvider's
XParameterizedContentProvider interface; in all other
事例/患者s, <translation>: regexps have the same semantics
as their <simple>: 相当するものs.
- Parameter ReplaceExisting
- true: 取って代わる the provider かもしれない 登録(する)d for the given URL
template. The 取って代わるd provider will not be deregistered automatically!
If the superseding provider gets deregistered, the superseded one will
become active again.
誤った: do not 登録(する), if another provider is already 登録(する)d
for the given URL template.
- Returns
- the 取って代わるd content provider, if there was one.
- See also
- XContentIdentifier
|