VirtualBox

Changeset 18694 in vbox for trunk/src


Ignore:
Timestamp:
Apr 3, 2009 2:23:27 PM (16 years ago)
Author:
vboxsync
Message:

SDK licensing

Location:
trunk/src/VBox/Main/webservice
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/Makefile.kmk

    r18683 r18694  
    369369 # Changed with every new version, so beware!
    370370 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)
    372372
    373373 VBOXWEB_OTHERS               += \
     
    608608        $(QUIET)$(MKDIR) -p $(VBOXWEB_PATH_SDK_GLUE_JAVA)
    609609        $(QUIET)$(TARGET_filesplitter) $@ $(VBOXWEB_PATH_SDK_GLUE_JAVA)
     610        $(QUIET)$(CP) -f $(VBOX_PATH_WEBSERVICE)/../../../../COPYING.LIB $(VBOXWEB_PATH_SDK_GLUE_JAVA)
    610611
    611612# likely those 4 rules can be changed to INSTALLS
  • trunk/src/VBox/Main/webservice/glue-jaxws.xsl

    r18608 r18694  
    5454  <xsl:param name="name" />
    5555  <xsl:text>/**
    56  * Copyright (C) 2006-2009 Sun Microsystems, Inc.
     56 * Copyright (C) 2008-2009 Sun Microsystems, Inc.
    5757 *
    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.
    6573 *
    6674 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
     
    6977 *
    7078</xsl:text>
    71   <xsl:value-of select="concat(' * ',$name)"/> 
     79  <xsl:value-of select="concat(' * ',$name)"/>
    7280<xsl:text>
    7381 *
     
    326334<xsl:template name="startFile">
    327335  <xsl:param name="file" />
    328  
     336
    329337  <xsl:value-of select="concat('&#10;// ##### BEGINFILE &quot;', $file, '&quot;&#10;&#10;')" />
    330338  <xsl:call-template name="fileheader">
     
    358366  <xsl:with-param name="file" select="'IUnknown.java'" />
    359367 </xsl:call-template>
    360  
     368
    361369 <xsl:text><![CDATA[
    362370public class IUnknown
     
    727735      <xsl:with-param name="file" select="concat($filename, '.java')" />
    728736    </xsl:call-template>
    729    
     737
    730738  </xsl:for-each>
    731739
     
    806814      <xsl:text>import java.util.UUID;&#10;</xsl:text>
    807815      <xsl:text>import javax.xml.ws.Holder;&#10;</xsl:text>
    808       <xsl:text>import javax.xml.ws.WebServiceException;&#10;</xsl:text>     
     816      <xsl:text>import javax.xml.ws.WebServiceException;&#10;</xsl:text>
    809817
    810818      <xsl:choose>
  • trunk/src/VBox/Main/webservice/samples/java/axis/clienttest.java

    r16124 r18694  
    55 * User Manual, which describe in detail how to get this code running.
    66 *
    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.
    2030 */
    2131
  • trunk/src/VBox/Main/webservice/samples/java/jax-ws/clienttest.java

    r18609 r18694  
    55 * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread.
    66 *
    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.
    2030 */
    2131/* Somewhat ugly way to support versioning */
     
    94104    public void test3()
    95105    {
    96        
     106
    97107        IWebsessionManager mgr1 = new IWebsessionManager("http://localhost:18082/");
    98108        IWebsessionManager mgr2 = new IWebsessionManager("http://localhost:18083/");
    99109        IVirtualBox vbox1 = mgr1.logon("test", "test");
    100110        IVirtualBox vbox2 = mgr2.logon("test", "test");
    101        
     111
    102112
    103113        System.out.println("connection 1 to VirtualBox version " + vbox1.getVersion());
     
    110120        vbox1 = mgr1.logon("test", "test");
    111121        vbox2 = mgr2.logon("test", "test");
    112        
     122
    113123        System.out.println("second connection 1 to VirtualBox version " + vbox1.getVersion());
    114124        System.out.println("second connection 2 to VirtualBox version " + vbox2.getVersion());
  • trunk/src/VBox/Main/webservice/samples/java/jax-ws/metrictest.java

    r18609 r18694  
    22 * Sample of performance API usage, written in Java.
    33 *
    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.
    2030 */
    2131import com.sun.xml.ws.commons.virtualbox{VBOX_API_SUFFIX}.*;
     
    100110        Holder<List<Long>> indices =  new Holder<List<Long>>();
    101111        Holder<List<Long>> lengths =  new Holder<List<Long>>();
    102         List<Integer> values = 
     112        List<Integer> values =
    103113            _collector.queryMetricsData(filterMetrics, filterObjects,
    104114                                        names, objects, units, scales, sequenceNumbers, indices, lengths);
     
    165175            List<PerformanceData> metricData = perf.query(Arrays.asList(new String[]{"*"}),
    166176                                                          allObjects);
    167             for (PerformanceData md : metricData) 
     177            for (PerformanceData md : metricData)
    168178            {
    169179                System.out.println("(" + getObjectName(md.object) + ") " +
     
    200210        }
    201211    }
    202    
     212
    203213    public static void main(String[] args) throws InterruptedException
    204214    {
  • trunk/src/VBox/Main/webservice/samples/perl/clienttest.pl

    r17681 r18694  
    66# programming reference (SDKRef.pdf) for how to use this sample.
    77#
    8 # Copyright (C) 2006-2009 Sun Microsystems, Inc.
     8# Copyright (C) 2008-2009 Sun Microsystems, Inc.
    99#
    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:
    1711#
    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.
    2131#
    2232
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette