Difference between revisions of "Documentation/DevGuide/JavaBean/Customized Configuration"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
|||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/JavaBean/Internal Architecture | |NextPage=Documentation/DevGuide/JavaBean/Internal Architecture | ||
}} | }} | ||
− | {{DISPLAYTITLE:Customized Configuration}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/JavaBean/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Customized Configuration}} | ||
Besides these default values, the Office Bean can be configured to use other parameters. There are three possibilities: | Besides these default values, the Office Bean can be configured to use other parameters. There are three possibilities: | ||
* starting the connection with an explicit UNO URL including path and pipe name parameters | * starting the connection with an explicit UNO URL including path and pipe name parameters |
Revision as of 13:13, 15 May 2009
Besides these default values, the Office Bean can be configured to use other parameters. There are three possibilities:
- starting the connection with an explicit UNO URL including path and pipe name parameters
- creating the connection manually and handing this object to the
OOoBean
- creating the
OOoBean
with such a manually created connection object.
The first method that a developer uses to configure the Office Bean is through the UNO URL passed in the setUnoUrl()
call. The syntax of the UNO URL is as follows:
url := 'uno:localoffice'[','<params>]';urp;StarOffice.NamingService' params := <path>[','<pipe>] path := 'path='<pathv> pipe := 'pipe='<pipev> pathv := platform_specific_path_to_the_local_office_distribution pipev := local_office_connection_pipe_name
Here is an example of how to use setUnoUrl()
in code:
OfficeConnection officeConnection = new LocalOfficeConnection(); officeConnection.setUnoUrl( “uno:localoffice,path=/home/user/staroffice6.0/program;urp;StarOffice.NamingService”); aBean = new OOoBean( officeConnection );
Content on this page is licensed under the Public Documentation License (PDL). |