com.esri.arcgis.gisclient
Interface IAGSServerConnectionFactory2

All Superinterfaces:
IAGSServerConnectionFactory, Serializable
All Known Subinterfaces:
IAGSServerConnectionFactory3
All Known Implementing Classes:
AGSServerConnectionFactory

public interface IAGSServerConnectionFactory2
extends IAGSServerConnectionFactory, Serializable

Provides access to members that create and open GIS server connections and supply server connection factory information.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 int getDefaultHttpTimeout()
          The default timeout for http requests to the server (in seconds).
 IAGSServerConnection openFromFile(String fileName, int hWnd)
          Opens the server connection specified by the given file name.
 IPropertySet readConnectionPropertiesFromFile(String fileName)
          The connection properties from the specified file.
 void setDefaultHttpTimeout(int seconds)
          The default timeout for http requests to the server (in seconds).
 
Methods inherited from interface com.esri.arcgis.gisclient.IAGSServerConnectionFactory
open
 

Method Detail

openFromFile

IAGSServerConnection openFromFile(String fileName,
                                  int hWnd)
                                  throws IOException,
                                         AutomationException
Opens the server connection specified by the given file name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
fileName - The fileName (in)
hWnd - The hWnd (A COM typedef) (in)
Returns:
A reference to a com.esri.arcgis.gisclient.IAGSServerConnection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readConnectionPropertiesFromFile

IPropertySet readConnectionPropertiesFromFile(String fileName)
                                              throws IOException,
                                                     AutomationException
The connection properties from the specified file.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
fileName - The fileName (in)
Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDefaultHttpTimeout

void setDefaultHttpTimeout(int seconds)
                           throws IOException,
                                  AutomationException
The default timeout for http requests to the server (in seconds).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
seconds - The seconds (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDefaultHttpTimeout

int getDefaultHttpTimeout()
                          throws IOException,
                                 AutomationException
The default timeout for http requests to the server (in seconds).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The seconds
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.