- Timestamp:
- Apr 3, 2009 2:23:27 PM (16 years ago)
- Location:
- trunk/src/VBox/Main/webservice
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/Makefile.kmk
r18683 r18694 369 369 # Changed with every new version, so beware! 370 370 VBOX_API_SUFFIX = _$(VBOX_VERSION_MAJOR)_$(VBOX_VERSION_MINOR) 371 VBOX_JAVA_PACKAGE = org.virtualbox$(VBOX_API_SUFFIX) 371 VBOX_JAVA_PACKAGE = org.virtualbox$(VBOX_API_SUFFIX) 372 372 373 373 VBOXWEB_OTHERS += \ … … 608 608 $(QUIET)$(MKDIR) -p $(VBOXWEB_PATH_SDK_GLUE_JAVA) 609 609 $(QUIET)$(TARGET_filesplitter) $@ $(VBOXWEB_PATH_SDK_GLUE_JAVA) 610 $(QUIET)$(CP) -f $(VBOX_PATH_WEBSERVICE)/../../../../COPYING.LIB $(VBOXWEB_PATH_SDK_GLUE_JAVA) 610 611 611 612 # likely those 4 rules can be changed to INSTALLS -
trunk/src/VBox/Main/webservice/glue-jaxws.xsl
r18608 r18694 54 54 <xsl:param name="name" /> 55 55 <xsl:text>/** 56 * Copyright (C) 200 6-2009 Sun Microsystems, Inc.56 * Copyright (C) 2008-2009 Sun Microsystems, Inc. 57 57 * 58 * This file is part of VirtualBox Open Source Edition (OSE), as 59 * available from http://www.virtualbox.org. This file is free software; 60 * you can redistribute it and/or modify it under the terms of the GNU 61 * General Public License (GPL) as published by the Free Software 62 * Foundation, in version 2 as it comes in the "COPYING" file of the 63 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 64 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 58 * This file is part of a free software library; you can redistribute 59 * it and/or modify it under the terms of the GNU Lesser General 60 * Public License version 2.1 as published by the Free Software 61 * Foundation and shipped in the "COPYING.LIB" file with this library. 62 * The library is distributed in the hope that it will be useful, 63 * but WITHOUT ANY WARRANTY of any kind. 64 * 65 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if 66 * any license choice other than GPL or LGPL is available it will 67 * apply instead, Sun elects to use only the Lesser General Public 68 * License version 2.1 (LGPLv2) at this time for any software where 69 * a choice of LGPL license versions is made available with the 70 * language indicating that LGPLv2 or any later version may be used, 71 * or where a choice of which version of the LGPL is applied is 72 * otherwise unspecified. 65 73 * 66 74 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa … … 69 77 * 70 78 </xsl:text> 71 <xsl:value-of select="concat(' * ',$name)"/> 79 <xsl:value-of select="concat(' * ',$name)"/> 72 80 <xsl:text> 73 81 * … … 326 334 <xsl:template name="startFile"> 327 335 <xsl:param name="file" /> 328 336 329 337 <xsl:value-of select="concat(' // ##### BEGINFILE "', $file, '" ')" /> 330 338 <xsl:call-template name="fileheader"> … … 358 366 <xsl:with-param name="file" select="'IUnknown.java'" /> 359 367 </xsl:call-template> 360 368 361 369 <xsl:text><![CDATA[ 362 370 public class IUnknown … … 727 735 <xsl:with-param name="file" select="concat($filename, '.java')" /> 728 736 </xsl:call-template> 729 737 730 738 </xsl:for-each> 731 739 … … 806 814 <xsl:text>import java.util.UUID; </xsl:text> 807 815 <xsl:text>import javax.xml.ws.Holder; </xsl:text> 808 <xsl:text>import javax.xml.ws.WebServiceException; </xsl:text> 816 <xsl:text>import javax.xml.ws.WebServiceException; </xsl:text> 809 817 810 818 <xsl:choose> -
trunk/src/VBox/Main/webservice/samples/java/axis/clienttest.java
r16124 r18694 5 5 * User Manual, which describe in detail how to get this code running. 6 6 * 7 * Copyright (C) 2008 Sun Microsystems, Inc. 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 * 17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 18 * Clara, CA 95054 USA or visit http://www.sun.com if you need 19 * additional information or have any questions. 7 * Copyright (C) 2008-2009 Sun Microsystems, Inc. 8 * 9 * The following license applies to this file only: 10 * 11 * Permission is hereby granted, free of charge, to any person 12 * obtaining a copy of this software and associated documentation 13 * files (the "Software"), to deal in the Software without 14 * restriction, including without limitation the rights to use, 15 * copy, modify, merge, publish, distribute, sublicense, and/or 16 * sell copies of the Software, and to permit persons to whom the 17 * Software is furnished to do so, subject to the following conditions: 18 * 19 * The above copyright notice and this permission notice shall be 20 * included in all copies or substantial portions of the Software. 21 * 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 29 * OTHER DEALINGS IN THE SOFTWARE. 20 30 */ 21 31 -
trunk/src/VBox/Main/webservice/samples/java/jax-ws/clienttest.java
r18609 r18694 5 5 * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread. 6 6 * 7 * Copyright (C) 2008 Sun Microsystems, Inc. 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 * 17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 18 * Clara, CA 95054 USA or visit http://www.sun.com if you need 19 * additional information or have any questions. 7 * Copyright (C) 2008-2009 Sun Microsystems, Inc. 8 * 9 * The following license applies to this file only: 10 * 11 * Permission is hereby granted, free of charge, to any person 12 * obtaining a copy of this software and associated documentation 13 * files (the "Software"), to deal in the Software without 14 * restriction, including without limitation the rights to use, 15 * copy, modify, merge, publish, distribute, sublicense, and/or 16 * sell copies of the Software, and to permit persons to whom the 17 * Software is furnished to do so, subject to the following conditions: 18 * 19 * The above copyright notice and this permission notice shall be 20 * included in all copies or substantial portions of the Software. 21 * 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 29 * OTHER DEALINGS IN THE SOFTWARE. 20 30 */ 21 31 /* Somewhat ugly way to support versioning */ … … 94 104 public void test3() 95 105 { 96 106 97 107 IWebsessionManager mgr1 = new IWebsessionManager("http://localhost:18082/"); 98 108 IWebsessionManager mgr2 = new IWebsessionManager("http://localhost:18083/"); 99 109 IVirtualBox vbox1 = mgr1.logon("test", "test"); 100 110 IVirtualBox vbox2 = mgr2.logon("test", "test"); 101 111 102 112 103 113 System.out.println("connection 1 to VirtualBox version " + vbox1.getVersion()); … … 110 120 vbox1 = mgr1.logon("test", "test"); 111 121 vbox2 = mgr2.logon("test", "test"); 112 122 113 123 System.out.println("second connection 1 to VirtualBox version " + vbox1.getVersion()); 114 124 System.out.println("second connection 2 to VirtualBox version " + vbox2.getVersion()); -
trunk/src/VBox/Main/webservice/samples/java/jax-ws/metrictest.java
r18609 r18694 2 2 * Sample of performance API usage, written in Java. 3 3 * 4 * Don't forget to run VBOX webserver 5 * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread. 6 * 7 * Copyright (C) 2008 Sun Microsystems, Inc. 8 * 9 * This file is part of VirtualBox Open Source Edition (OSE), as 10 * available from http://www.virtualbox.org. This file is free software; 11 * you can redistribute it and/or modify it under the terms of the GNU 12 * General Public License (GPL) as published by the Free Software 13 * Foundation, in version 2 as it comes in the "COPYING" file of the 14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 * 17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 18 * Clara, CA 95054 USA or visit http://www.sun.com if you need 19 * additional information or have any questions. 4 * Don't forget to run VBOX webserver 5 * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread. 6 * 7 * Copyright (C) 2008-2009 Sun Microsystems, Inc. 8 * 9 * The following license applies to this file only: 10 * 11 * Permission is hereby granted, free of charge, to any person 12 * obtaining a copy of this software and associated documentation 13 * files (the "Software"), to deal in the Software without 14 * restriction, including without limitation the rights to use, 15 * copy, modify, merge, publish, distribute, sublicense, and/or 16 * sell copies of the Software, and to permit persons to whom the 17 * Software is furnished to do so, subject to the following conditions: 18 * 19 * The above copyright notice and this permission notice shall be 20 * included in all copies or substantial portions of the Software. 21 * 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 29 * OTHER DEALINGS IN THE SOFTWARE. 20 30 */ 21 31 import com.sun.xml.ws.commons.virtualbox{VBOX_API_SUFFIX}.*; … … 100 110 Holder<List<Long>> indices = new Holder<List<Long>>(); 101 111 Holder<List<Long>> lengths = new Holder<List<Long>>(); 102 List<Integer> values = 112 List<Integer> values = 103 113 _collector.queryMetricsData(filterMetrics, filterObjects, 104 114 names, objects, units, scales, sequenceNumbers, indices, lengths); … … 165 175 List<PerformanceData> metricData = perf.query(Arrays.asList(new String[]{"*"}), 166 176 allObjects); 167 for (PerformanceData md : metricData) 177 for (PerformanceData md : metricData) 168 178 { 169 179 System.out.println("(" + getObjectName(md.object) + ") " + … … 200 210 } 201 211 } 202 212 203 213 public static void main(String[] args) throws InterruptedException 204 214 { -
trunk/src/VBox/Main/webservice/samples/perl/clienttest.pl
r17681 r18694 6 6 # programming reference (SDKRef.pdf) for how to use this sample. 7 7 # 8 # Copyright (C) 200 6-2009 Sun Microsystems, Inc.8 # Copyright (C) 2008-2009 Sun Microsystems, Inc. 9 9 # 10 # This file is part of VirtualBox Open Source Edition (OSE), as 11 # available from http://www.virtualbox.org. This file is free software; 12 # you can redistribute it and/or modify it under the terms of the GNU 13 # General Public License (GPL) as published by the Free Software 14 # Foundation, in version 2 as it comes in the "COPYING" file of the 15 # VirtualBox OSE distribution. VirtualBox OSE is distributed in the 16 # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 10 # The following license applies to this file only: 17 11 # 18 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 19 # Clara, CA 95054 USA or visit http://www.sun.com if you need 20 # additional information or have any questions. 12 # Permission is hereby granted, free of charge, to any person 13 # obtaining a copy of this software and associated documentation 14 # files (the "Software"), to deal in the Software without 15 # restriction, including without limitation the rights to use, 16 # copy, modify, merge, publish, distribute, sublicense, and/or 17 # sell copies of the Software, and to permit persons to whom the 18 # Software is furnished to do so, subject to the following conditions: 19 # 20 # The above copyright notice and this permission notice shall be 21 # included in all copies or substantial portions of the Software. 22 # 23 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 25 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 27 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 28 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 30 # OTHER DEALINGS IN THE SOFTWARE. 21 31 # 22 32
Note:
See TracChangeset
for help on using the changeset viewer.