Difference between revisions of "Documentation/DevGuide/UCB/UCP Registration Information"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Universal Content Broker)
m
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/UCB/Unconfigured UCBs
 
|NextPage=Documentation/DevGuide/UCB/Unconfigured UCBs
 
}}
 
}}
{{DISPLAYTITLE:UCP Registration Information}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/UCB/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:UCP Registration Information}}
 
Before registering a content provider, the following information that is provided by the implementer of the UCP is required. The Appendix [[Documentation/DevGuide/AppendixC/Universal Content Providers|Universal Content Providers]] provides these for the currently available UCPs.
 
Before registering a content provider, the following information that is provided by the implementer of the UCP is required. The Appendix [[Documentation/DevGuide/AppendixC/Universal Content Providers|Universal Content Providers]] provides these for the currently available UCPs.
  
 
* The UNO ''service name'' to instantiate the UCP, for example, "com.sun.star.ucb.FileContentProvider". Each UCP must be implemented and registered as a UNO component. Refer to chapter [[Documentation/DevGuide/WritingUNO/Writing UNO Components|Writing UNO Components]] for more information on writing and registering UNO components.
 
* The UNO ''service name'' to instantiate the UCP, for example, "com.sun.star.ucb.FileContentProvider". Each UCP must be implemented and registered as a UNO component. Refer to chapter [[Documentation/DevGuide/WritingUNO/Writing UNO Components|Writing UNO Components]] for more information on writing and registering UNO components.
* An ''URL template'' used by the UCB to select the registered UCPs that best fit an incoming URL. See <idl>com.sun.star.ucb.XContentIdentifier</idl>. This can be the name of an URL scheme, for example, the file that selects the given UCP for all file URLs, or a limited regular expression, such as "<code>http://"[^/?#]*".com"([/?#].*)?</code> That will select the given UCP for all http URLs in the com domain. See the documentation of [http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/XContentProviderManager.html#registerContentProvider com.sun.star.ucb.XContentProviderManager:registerContentProvider]() for details about these regular expressions.
+
* An ''URL template'' used by the UCB to select the registered UCPs that best fit an incoming URL. See <idl>com.sun.star.ucb.XContentIdentifier</idl>. This can be the name of an URL scheme, for example, the file that selects the given UCP for all file URLs, or a limited regular expression, such as "<code>http://"[^/?#]*".com"([/?#].*)?</code> That will select the given UCP for all http URLs in the com domain. See the documentation of <idlm>com.sun.star.ucb.XContentProviderManager:registerContentProvider</idlm>() for details about these regular expressions.
 
* Additional arguments that may be needed by the UCP.
 
* Additional arguments that may be needed by the UCP.
  
 
{{PDL1}}
 
{{PDL1}}
  
[[Category:Documentation/Developers Guide/Universal Content Broker]]
+
[[Category:Documentation/Developer's Guide/Universal Content Broker]]

Latest revision as of 16:45, 21 December 2020



Before registering a content provider, the following information that is provided by the implementer of the UCP is required. The Appendix Universal Content Providers provides these for the currently available UCPs.

  • The UNO service name to instantiate the UCP, for example, "com.sun.star.ucb.FileContentProvider". Each UCP must be implemented and registered as a UNO component. Refer to chapter Writing UNO Components for more information on writing and registering UNO components.
  • An URL template used by the UCB to select the registered UCPs that best fit an incoming URL. See com.sun.star.ucb.XContentIdentifier. This can be the name of an URL scheme, for example, the file that selects the given UCP for all file URLs, or a limited regular expression, such as "http://"[^/?#]*".com"([/?#].*)? That will select the given UCP for all http URLs in the com domain. See the documentation of registerContentProvider() for details about these regular expressions.
  • Additional arguments that may be needed by the UCP.
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages