Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

class net.Destination

BorisNen edited this page Jun 27, 2021 · 1 revision

$.net.Destination Class

Returns the network destination with the given name. A network destination contains metadata, for example, host name and port number. A network destination can also contain custom properties.

Reference

  • SAP Help

https://help.sap.com/doc/3de842783af24336b6305a3c0223a369/2.0.03/en-US/$.net.Destination.html

  • Module

https://github.com/SAP/xsk/tree/main/modules/api/api-xsjs/src/main/resources/xsk/net

  • Sample usage:
let net = $.net;
let response_prev = require('http/v4/response');

/*
Read service.xshttpdest inside the Demo package that contains:
host=http://localhost;
port=8080;
*/
let dest = new net.Destination("Demo", "service");
// Check if the file has been read properly
response_prev.println("Host: " +dest.host+ " Port: " +dest.port);
  • new Destination(package, objectName) - Throws an error if no valid network destination is found with the given name
Parameters Type Description Status
package String The package where the destination is located.
objectName String The name of the destination file.
  • Coverage
Members Type Description Status
host String Property used to retrieve the host defined in a network destination.
port String Property used to retrieve the port defined in a network destination.
  • Issues

https://github.com/SAP/xsk/issues/19

  • Unit Tests

https://github.com/SAP/xsk/tree/main/modules/engines/engine-xsjs/src/test/resources/test/xsk/net/net.xsjs

  • Integration Tests ❌

Wiki icons legend

✅ - Feature implemented and working as supposed.
⚠️ - Feature partially implemented and needs to be finished.
❌ - Feature not implemented yet.

Project

Architecture

Tips & Tricks

Infrastructure

Troubleshooting guide

Clone this wiki locally