<span id="Label3"></p><p><p></p></p><p><p>Filtering is divided into four types of verification</p></p><p><p><action></p></p><p><p><category></p></p><p><p><data></p></p><p><p><ssp></p></p><p><p>0. Four components can declare multiple Intent-fliter tags.</p></p><p><p>1. Action validation is a required option, and if there is no action, the validation fails. The action validation is either a relationship, that is, satisfies one by passing the Validation.</p></p><p><p>eg</p></p><p><p><intent-infliter ></p></p><p><p><actionandroid:name= "Action1"/></p></p><p><p><actionandroid:name= "Action2"/></p></p><p><p><actionandroid:name= "Action3"/></p></p><p><p></intent-infliter ><</p></p><p><p></p></p><p><p></p></p><p><p>Action = "Action1"</p></p><p><p>by verifying</p></p><p><p></p></p><p><p>2.category is optional, the validation rule is that if multiple tags are declared on a intent-fliter label, all the category of the intent that requested validation must be a subset of the Intent-fliter label category that the current request Validates.</p></p><p><p></p></p><p><p><intent-infliter ></p></p><p><p><category android:name= "category 1"/></p></p><p><p><category android:name= "category2"/></p></p><p><p><category android:name= "category3"/></p></p><p><p></intent-infliter ><</p></p><p><p></p></p><p><p>Eg2:</p></p><p><p>Intent Intent = new Intent ();</p></p><p><p>Intent. addcategory ("category1");</p></p><p><p>Intent. addcategory ("category2");</p></p><p><p>by verifying</p></p><p><p></p></p><p><p>Eg3:</p></p><p><p>Intent Intent = new Intent ();</p></p><p><p>Intent. addcategory ("category1");</p></p><p><p>Intent. addcategory ("category2");</p></p><p><p>Intent. addcategory ("category4");</p></p><p><p>Failed to pass validation</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>3.data Authentication. Format of Data: Scheme://host:port/path</p></p><p><p>3.1: validation must be done from left to right to verify that skipping verification is not allowed.</p></p><p><p>eg</p></p><p><p>3.2:scheme is a Must-have.</p></p><p><p>3.3: Validated Properties</p></p><p><p>A android:scheme= ""</p></p><p><p>b android:host= ""</p></p><p><p>C android:port= ""</p></p><p><p>D android:path= ""</p></p><p><p>E android:pathpattern= ""</p></p><p><p>F android:pathprefix= ""</p></p><p><p>G Android:mimetype= ""</p></p><p><p>H android:ssp= "" 4.4 Plus</p></p><p><p>I android:ssppattern= "" 4.4 Plus</p></p><p><p>J android:sspprefix= "" 4.4 Plus</p></p><p><p></p></p><p><p>For a, b, c, D Their relationship is the relationship, only the full satisfaction is Counted.</p></p><p><p>For the relationship of d, e, f Their relationship is or is passed by any ONE.</p></p><p><p>The relationship to URIs (a, b, c, d, e, F) and MimeType is the Relationship. Only all satisfaction is Counted. Remember that if the intent of the request validation contains a URI or mimetype, and the label contains a URI or mimetype, then the request validation is Unsuccessful. conversely, it Fails.</p></p><p><p>4. SSP See https:/zybuluo.com/flyouting/note/18525</p></p><p><p>Note 1:path is used for full path matching. eg:/index.jsp</p></p><p><p>Note 2:pathpattern is a path matching pattern with two forms of "<strong><span style="color:red">*</span></strong>", "<strong><span style="color:red">. *</span></strong>"</p></p><p><p>* Represents a * before a character has 0 or more. AB*C matching AC ABC abbc ABBBC</p></p><p><p>. * Represents a string of 0 or More. Ab*c match ABC Abec ABFFC ABUUUUC</p></p><p><p>Note 3:pathprefix is used for path prefix matching. /in matching/in.jsp index.jsp .....</p></p><p><p>Note 4:host can also use wildcards however, the host can contain only one * wildcard character, and cannot contain other Characters.</p></p><br><p><p>Android Intent-infliter Filter Verification</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service