|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.gisclient.AGSServerConnectionFactory
public class AGSServerConnectionFactory
A factory object for ArcGIS Server Connections.
An AGSServerConnectionFactory is a dispenser of AGSServerConnection objects and allows a client to connect to an ArcGIS Server either directly over a LAN or indirectly to a specified web service catalog. An AGSServerConnection represents a GIS server or web service catalog that containe one of more server objects. Types of server objects are MapServer and GeocodeServer. An AGSServerConnectionFactory maintains a pool of currently connected, active connections that are being referenced by the application. Connection properties are specified using a PropertySet object and can be saved to a connection file.
AGSServerConnectionFactory on Unix can only use Internet connections (i.e., through the web service endpoints) to connect to ArcGIS Servers. It cannot connect over LAN connections.
Constructor Summary | |
---|---|
AGSServerConnectionFactory()
Constructs a AGSServerConnectionFactory using ArcGIS Engine. |
|
AGSServerConnectionFactory(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AGSServerConnectionFactory theAGSServerConnectionFactory = (AGSServerConnectionFactory) obj; |
Method Summary | |
---|---|
void |
clearParameters(IPropertySet pConnectionProperties)
Clears an ArcGIS Server connection's user entered parameters. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getDefaultHttpTimeout()
The default timeout for http requests to the server (in seconds). |
IEnumAGSServerConnectionName |
getHostedServers(int hWnd)
Returns server object names for the hosted servers accessible to the user. |
IAGSServerConnectionName |
getInServerConnectionName()
Returns a server connection name that can be used to connect to the server from within a server process. |
int |
hashCode()
the hashcode for this object |
IAGSServerConnection |
open(IPropertySet pConnectionProperties,
int hWnd)
Opens the GIS server connection specified by the connection properties. |
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 class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public AGSServerConnectionFactory() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic AGSServerConnectionFactory(Object obj) throws IOException
AGSServerConnectionFactory theAGSServerConnectionFactory = (AGSServerConnectionFactory) obj;
obj
to AGSServerConnectionFactory
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IAGSServerConnection open(IPropertySet pConnectionProperties, int hWnd) throws IOException, AutomationException
Use the Open method to create an AGSServerConnection based on a property set. The properties required in the property set depend on whether you are connecting directly to a GIS server over a LAN, or if you are connecting to a web service catalog. When connecting to a GIS server over the LAN, you need to set the machine property to be the name of the GIS server machine. When connecting to a web service catalog, you need to set the url property to the url of the web service catalog.
If the web service catalog you are connecting to is secure and requires a username and password, include them in the property set as the user and password properties, respectivly.
open
in interface IAGSServerConnectionFactory
pConnectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAGSServerConnection openFromFile(String fileName, int hWnd) throws IOException, AutomationException
openFromFile
in interface IAGSServerConnectionFactory2
fileName
- The fileName (in)hWnd
- The hWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet readConnectionPropertiesFromFile(String fileName) throws IOException, AutomationException
readConnectionPropertiesFromFile
in interface IAGSServerConnectionFactory2
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultHttpTimeout(int seconds) throws IOException, AutomationException
setDefaultHttpTimeout
in interface IAGSServerConnectionFactory2
seconds
- The seconds (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDefaultHttpTimeout() throws IOException, AutomationException
getDefaultHttpTimeout
in interface IAGSServerConnectionFactory2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumAGSServerConnectionName getHostedServers(int hWnd) throws IOException, AutomationException
getHostedServers
in interface IAGSServerConnectionFactory3
hWnd
- The hWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAGSServerConnectionName getInServerConnectionName() throws IOException, AutomationException
getInServerConnectionName
in interface IAGSServerConnectionFactory3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearParameters(IPropertySet pConnectionProperties) throws IOException, AutomationException
clearParameters
in interface ISetDefaultAgsConnectionInfo
pConnectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |