# Class Configuration#getServerProperty

Configuration

- Defined in: configuration.js

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| Configuration#getServerProperty(successCallback, errorCallback) Gets server property.

## Class Detail

Configuration#getServerProperty(successCallback, errorCallback)
Gets server property. Server property has information about application mode and server settings for application upgrade and launch.

    // Javascript code
    function getServerProperty () {
      function successCb(cbObject) {
         console.log("cbObject : " + JSON.stringify(cbObject));

         console.log("server IP : " + cbObject.serverIp);
         console.log("server Port : " + cbObject.serverPort);
         console.log("secure Connection : " + cbObject.secureConnection);
         console.log("applicationLaunchMode : " + cbObject.appLaunchMode);
         console.log("application type : " + cbObject.appType);
         console.log("fully Qualified Domain Name Mode : " + cbObject.fqdnMode);
         console.log("fully Qualified Domain Name Address: " + cbObject.fqdnAddr);

         // Do something
      }

      function failureCb(cbObject) {
         var errorCode = cbObject.errorCode;
         var errorText = cbObject.errorText;
         console.log ("Error Code [" + errorCode + "]: " + errorText);
      }

      var configuration = new Configuration();
      configuration.getServerProperty(successCb, failureCb);
    }

Parameters:
{Function} successCallback
  success callback function.
{Function} errorCallback
  failure callback function.

Since:
  1.1
Returns:
  {Object}

  Property | Type | Description
  --- | --- | ---
  serverIp | String | IP address (local, usb : to upgrade / remote : to launch )
  serverPort | Number | Port number (local, usb : to upgrade / remote : to launch )
  secureConnection | Boolean | true : https, false : http
  appLaunchMode | String | launch mode Configuration.AppMode
  appType | String | app type Configuration.AppType
  fqdnMode | Boolean | true : use fqdn settings for application upgrade or launch, false : use serverIp and serverPort settings for application upgrade or launch
  fqdnAddr | String | FQDN url. for example, http://lge.com/index.html or https://lge.com/index.html

See:
  Configuration.setServerProperty()