1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package ohos; 17 18 /** 19 * collection of uriInfo members 20 */ 21 public class UriInfo { 22 /** 23 * Indicates the schema of ModuleUriInfo. 24 */ 25 public String scheme = ""; 26 /** 27 * Indicates the host of ModuleUriInfo. 28 */ 29 public String host = ""; 30 /** 31 * Indicates the port of ModuleUriInfo. 32 */ 33 public String port = ""; 34 /** 35 * Indicates the pathStartWith of ModuleUriInfo. 36 */ 37 public String pathStartWith = ""; 38 /** 39 * Indicates the pathRegex of ModuleUriInfo. 40 */ 41 public String pathRegex = ""; 42 /** 43 * Indicates the path of ModuleUriInfo. 44 */ 45 public String path = ""; 46 /** 47 * Indicates the type of ModuleUriInfo. 48 */ 49 public String type = ""; 50 /** 51 * Indicates the uniform file type supported by the ability. 52 */ 53 private String utd = ""; 54 /** 55 * Indicates the maximum number of files that can be received. 56 */ 57 private Integer maxFileSupported = 0; 58 /** 59 * Indicates the uri feature. 60 */ 61 private String linkFeature = ""; 62 63 /** 64 * get the uniform file type supported by the ability. 65 */ getUtd()66 public String getUtd() { 67 return utd; 68 } 69 70 /** 71 * set the uniform file type supported by the ability. 72 */ setUtd(String utd)73 public void setUtd(String utd) { 74 this.utd = utd; 75 } 76 77 /** 78 * get the maximum number of files that can be received. 79 */ getMaxFileSupported()80 public Integer getMaxFileSupported() { 81 return maxFileSupported; 82 } 83 84 /** 85 * set the maximum number of files that can be received. 86 */ setMaxFileSupported(Integer maxFileSupported)87 public void setMaxFileSupported(Integer maxFileSupported) { 88 this.maxFileSupported = maxFileSupported; 89 } 90 91 /** 92 * get the uri feature. 93 */ getLinkFeature()94 public String getLinkFeature() { 95 return linkFeature; 96 } 97 98 /** 99 * set the uri feature. 100 */ setLinkFeature(String linkFeature)101 public void setLinkFeature(String linkFeature) { 102 this.linkFeature = linkFeature; 103 } 104 } 105