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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial author Sun Microsystems, Inc.)
 
m (FINAL VERSION FOR L10N)
(3 intermediate revisions by 2 users 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.
  
Line 13: Line 14:
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: Universal Content Broker]]
+
 
 +
[[Category:Documentation/Developer's Guide/Universal Content Broker]]

Revision as of 13:08, 15 May 2009



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 com.sun.star.ucb.XContentProviderManager: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