Demo application – Nortel Networks NN46120-104 User Manual

Page 274

Advertising
background image

274

Using the Port Forwarder API

Demo Application

The Demo application is, in a simple way, showing how the Port Forwarder
API is used. It can be run both as a regular application and by using the
Java Web Start technology. It takes a couple of parameters needed to
point out the Portal and link to use.

-vpnurl

The URL to the portal, e.g.

https://vpn.example.com

.

-linktype

The type of the link to use, for example "custom". The link
type should be the same as defined in the CLI/BBI.

-vpn

The number of the VPN in the Portal, for example 1.

-linkset

The number of the linkset in the VPN, for example 1.

-link

The number of the link in the linkset, for example 1.

When run as a regular application, the arguments are simply passed on
the command line:

java com.nortel.nvg.demo.PortForwarderDemo -vpnurl

https://vpn.example.com -linktype custom -vpn 1 -linkset 1

-link 1

For Java Web Start, parameters are passed through the jnlp file. A templat
e jnlp file is provided along with a corresponding html file. For information
about Java Web Start, refer to http://java.sun.com/products/javawebstart.

A correct jnlp file corresponding to the preceding example look like this:

Nortel VPN Gateway

User Guide

NN46120-104

02.01

Standard

14 April 2008

Copyright © 2007-2008 Nortel Networks

.

Advertising