Instantiating an MDEX Engine connection object

The Presentation API AuthHttpENEConnection class is used to instantiate connection objects to the Endeca MDEX Engine.

An AuthHttpENEConnection connection functions as a repository for the hostname and port configuration for the MDEX Engine you want to query. The class methods are briefly described in the following sections. For more information on the methods, see the Endeca API Javadocs or the Endeca API Guide for .NET.

Java implementation

The signature for an AuthHttpENEConnection constructor looks like this:
//Instantiate a connection object for the MDEX Engine
AuthHttpENEConnection nec = new AuthHttpENEConnection(eneHost, enePort);

In the instantiation, eneHost is the host name or IP address of the Endeca MDEX Engine and enePort is its port number.

.NET implementation

For .NET, the ASPX code to instantiate an AuthHttpENEConnection object looks like this:
//Instantiate a connection object for the MDEX Engine
AuthHttpENEConnection nec = new AuthHttpENEConnection(eneHost, enePort);

In the instantiation, eneHost is the host name or IP address of the Endeca MDEX Engine and enePort is its port number.