|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.gisclient.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 web service catalog specified. An AGSServerConnection represents a GIS server or web service catalog that containe one of more server objects. Types of server object 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.
AGSServerConnection,
GISServerConnection,
Serialized Form| Constructor Summary | |
AGSServerConnectionFactory()
Constructs a AGSServerConnectionFactory using ArcGIS Engine. |
|
AGSServerConnectionFactory(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IAGSServerConnectionFactory |
getAsIAGSServerConnectionFactory()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAGSServerConnectionFactory2 |
getAsIAGSServerConnectionFactory2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
static java.lang.String |
getClsid()
|
int |
getDefaultHttpTimeout()
The default timeout for http requests to the server (in seconds). |
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(java.lang.String fileName,
int hWnd)
Opens the server connection specified by the given file name. |
IPropertySet |
readConnectionPropertiesFromFile(java.lang.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 |
| Constructor Detail |
public AGSServerConnectionFactory()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public AGSServerConnectionFactory(java.lang.Object obj)
throws java.io.IOException
obj to AGSServerConnectionFactory. AGSServerConnectionFactory theAGSServerConnectionFactory = (AGSServerConnectionFactory) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IAGSServerConnectionFactory getAsIAGSServerConnectionFactory()
public IAGSServerConnectionFactory2 getAsIAGSServerConnectionFactory2()
public boolean equals(java.lang.Object o)
public int hashCode()
public IAGSServerConnection open(IPropertySet pConnectionProperties,
int hWnd)
throws java.io.IOException,
AutomationException
IAGSServerConnectionFactoryUse 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 IAGSServerConnectionFactorypConnectionProperties - A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd - The hWnd (A COM typedef) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IAGSServerConnection openFromFile(java.lang.String fileName,
int hWnd)
throws java.io.IOException,
AutomationException
IAGSServerConnectionFactory2
openFromFile in interface IAGSServerConnectionFactory2fileName - The fileName (in)hWnd - The hWnd (A COM typedef) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropertySet readConnectionPropertiesFromFile(java.lang.String fileName)
throws java.io.IOException,
AutomationException
IAGSServerConnectionFactory2
readConnectionPropertiesFromFile in interface IAGSServerConnectionFactory2fileName - The fileName (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDefaultHttpTimeout(int seconds)
throws java.io.IOException,
AutomationException
IAGSServerConnectionFactory2
setDefaultHttpTimeout in interface IAGSServerConnectionFactory2seconds - The seconds (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getDefaultHttpTimeout()
throws java.io.IOException,
AutomationException
IAGSServerConnectionFactory2
getDefaultHttpTimeout in interface IAGSServerConnectionFactory2AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||