All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.ws.commons.virtualbox.IVRDPServer Maven / Gradle / Ivy


package com.sun.xml.ws.commons.virtualbox;

import javax.xml.ws.WebServiceException;


/**
 * 
 */
public class IVRDPServer {

    public final VboxPortType port;
    public final String _this;

    public IVRDPServer(String _this, VboxPortType port) {
        
        this._this = _this;
        this.port = port;
    
    }

    /**
     * VRDP server status.
     * 
     */
    public boolean getEnabled() {
        try {
            boolean retVal = port.ivrdpServerGetEnabled(_this);
            return retVal;
        } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    /**
     * VRDP server status.
     * 
     */
    public void setEnabled(boolean value) {
        try {
            port.ivrdpServerSetEnabled(_this, value);
        } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) {
            throw new WebServiceException(e);
        } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) {
            throw new WebServiceException(e);
        }
    }

    /**
     * VRDP server port number.
Setting the value of this property to 0 will reset the port * number to the default value which is * currently 3389 . Reading this property will always return a * real port number, even after it has been set to 0 (in which * case the default port is returned).
* */ public long getPort() { try { long retVal = port.ivrdpServerGetPort(_this); return retVal; } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * VRDP server port number.
Setting the value of this property to 0 will reset the port * number to the default value which is * currently 3389 . Reading this property will always return a * real port number, even after it has been set to 0 (in which * case the default port is returned).
* */ public void setPort(long value) { try { port.ivrdpServerSetPort(_this, value); } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * VRDP server address. * */ public String getNetAddress() { try { String retVal = port.ivrdpServerGetNetAddress(_this); return retVal; } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * VRDP server address. * */ public void setNetAddress(String value) { try { port.ivrdpServerSetNetAddress(_this, value); } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * VRDP authentication method. * */ public VRDPAuthType getAuthType() { try { VRDPAuthType retVal = port.ivrdpServerGetAuthType(_this); return retVal; } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * VRDP authentication method. * */ public void setAuthType(VRDPAuthType value) { try { port.ivrdpServerSetAuthType(_this, value); } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * Timeout for guest authentication. Milliseconds. * */ public long getAuthTimeout() { try { long retVal = port.ivrdpServerGetAuthTimeout(_this); return retVal; } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * Timeout for guest authentication. Milliseconds. * */ public void setAuthTimeout(long value) { try { port.ivrdpServerSetAuthTimeout(_this, value); } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * Flag whether multiple simultaneous connections to the VM are permitted. * Note that this will be replaced by a more powerful mechanism in the future. * */ public boolean getAllowMultiConnection() { try { boolean retVal = port.ivrdpServerGetAllowMultiConnection(_this); return retVal; } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * Flag whether multiple simultaneous connections to the VM are permitted. * Note that this will be replaced by a more powerful mechanism in the future. * */ public void setAllowMultiConnection(boolean value) { try { port.ivrdpServerSetAllowMultiConnection(_this, value); } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * Flag whether the existing connection must be dropped and a new connection * must be established by the VRDP server, when a new client connects in single * connection mode. * */ public boolean getReuseSingleConnection() { try { boolean retVal = port.ivrdpServerGetReuseSingleConnection(_this); return retVal; } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } /** * Flag whether the existing connection must be dropped and a new connection * must be established by the VRDP server, when a new client connects in single * connection mode. * */ public void setReuseSingleConnection(boolean value) { try { port.ivrdpServerSetReuseSingleConnection(_this, value); } catch (com.sun.xml.ws.commons.virtualbox.InvalidObjectFaultMsg e) { throw new WebServiceException(e); } catch (com.sun.xml.ws.commons.virtualbox.RuntimeFaultMsg e) { throw new WebServiceException(e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy