public class ServerConnection extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IServerConnection
IID, IID425b0a5b_bf1b_4f0e_9e75_37324a12e5f9, xxDummy
Constructor and Description |
---|
ServerConnection()
Constructs a ServerConnection on the local host.
|
ServerConnection(com.esri.arcgis.interop.AuthInfo authInfo)
Deprecated.
use AuthInfo.setDefault(...) or AuthInfo.setThreadDefault(...)
See Security section in the J-Integra documentation
|
ServerConnection(java.lang.Object obj)
Construct a ServerConnection using a reference to such an object returned from a COM server
|
ServerConnection(java.lang.String host)
Construct a ServerConnection on specified host.
|
ServerConnection(java.lang.String host,
com.esri.arcgis.interop.AuthInfo authInfo)
Deprecated.
use AuthInfo.setDefault(...) or AuthInfo.setThreadDefault(...)
See Security section in the J-Integra documentation
|
Modifier and Type | Method and Description |
---|---|
static ServerConnection |
bindUsingMoniker(java.lang.String moniker)
bindUsingMoniker.
|
void |
connect(java.lang.String machineName)
connect.
|
void |
connect(java.lang.String machineName,
java.lang.String domain,
java.lang.String user,
java.lang.String password)
Connects to the GIS server specified by the machineName and authenticates the user
with the credentials provided as arguments.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
static ServerConnection |
getActiveObject()
getActiveObject.
|
IServer |
getAsIServer()
Access this COM class's com.esri.arcgis.server.IServer interface
|
static java.lang.String |
getClsid() |
java.lang.String |
getHostName()
Returns the name of the server machine to which this connection was created.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
protected java.lang.String |
getJintegraVersion() |
java.lang.Object |
getPropertyByName(java.lang.String name)
getPropertyByName.
|
java.lang.Object |
getPropertyByName(java.lang.String name,
java.lang.Object rhs)
getPropertyByName.
|
IServerObjectAdmin |
getServerObjectAdmin()
getServerObjectAdmin.
|
IServerObjectManager |
getServerObjectManager()
getServerObjectManager.
|
IServerObjectManager |
getServerObjectManager2(java.lang.String userInfo)
getServerObjectManager2.
|
int |
hashCode()
the hashcode for this object
|
java.lang.Object |
invokeMethodByName(java.lang.String name,
java.lang.Object[] parameters)
invokeMethodByName.
|
void |
release()
Release this COM object reference
|
public ServerConnection() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are problems communicating via DCOMjava.net.UnknownHostException
- if the host can not be foundpublic ServerConnection(java.lang.String host) throws java.io.IOException, java.net.UnknownHostException
host
- the host on which the object should be createdjava.io.IOException
- if there are problems communicating via DCOMjava.net.UnknownHostException
- if the host can not be foundpublic ServerConnection(com.esri.arcgis.interop.AuthInfo authInfo) throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
java.net.UnknownHostException
com.esri.arcgis.interop.AuthInfo.setDefault(..)
public ServerConnection(java.lang.String host, com.esri.arcgis.interop.AuthInfo authInfo) throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
java.net.UnknownHostException
com.esri.arcgis.interop.AuthInfo.setDefault(..)
public ServerConnection(java.lang.Object obj) throws java.io.IOException
obj
- an object returned from a COM serverjava.io.IOException
- if there are problems communicating via DCOMpublic static java.lang.String getClsid()
protected java.lang.String getJintegraVersion()
public IServer getAsIServer()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static ServerConnection getActiveObject() throws AutomationException, java.io.IOException
java.io.IOException
- If there are communications problems.AutomationException
- If there was an error attaching to the instance.public static ServerConnection bindUsingMoniker(java.lang.String moniker) throws AutomationException, java.io.IOException
moniker
- The ObjRef Moniker (Created using Windows CreateObjrefMoniker() and IMoniker->GetDisplayName)java.io.IOException
- If there are communications problems.AutomationException
- If there was an error attaching to the instance.public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public java.lang.Object getPropertyByName(java.lang.String name) throws java.lang.NoSuchFieldException, java.io.IOException, AutomationException
name
- The name of the property to get.java.lang.NoSuchFieldException
- If the property does not exit.java.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public java.lang.Object getPropertyByName(java.lang.String name, java.lang.Object rhs) throws java.lang.NoSuchFieldException, java.io.IOException, AutomationException
name
- The name of the property to get.rhs
- A parameter used when getting the proxyjava.lang.NoSuchFieldException
- If the property does not exit.java.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public java.lang.Object invokeMethodByName(java.lang.String name, java.lang.Object[] parameters) throws java.lang.NoSuchMethodException, java.io.IOException, AutomationException
name
- The name of the method to be invokedparameters
- One element for each parameter. Use primitive type wrappers
to pass primitive types (eg Integer to pass an int).java.lang.NoSuchMethodException
- If the method does not exit.java.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public void connect(java.lang.String machineName, java.lang.String domain, java.lang.String user, java.lang.String password) throws java.io.IOException, AutomationException
System.setProperty("ARCGIS_LM_COMPATIBILITY_LEVEL", "5");
Value | Meaning |
0 | Clients use LM and NTLM authentication, but they never use NTLMv2 session security. Domain controllers accept LM, NTLM, and NTLMv2 authentication. |
1 | Clients use LM and NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controllers accept LM, NTLM, and NTLMv2 authentication. |
2 | Clients use only NTLM authentication, and they use NTLMv2 session security if the server supports it. Domain controller accepts LM, NTLM, and NTLMv2 authentication. |
3 | Clients use only NTLMv2 authentication, and they can work with NTLMv2 session security if the server supports it. Domain controllers accept LM, NTLM, and NTLMv2 authentication. |
4 | Clients use only NTLMv2 authentication, and they can work with NTLMv2 session security if the server supports it. Domain controller refuses LM authentication responses, but it accepts NTLM and NTLMv2. |
5 | Clients use only NTLMv2 authentication, and they can work with NTLMv2 session security if the server supports it. Domain controller refuses LM and NTLM authentication responses, but it accepts NTLMv2. |
machineName
- The machineName (in)domain
- The domain name (in)user
- The user name (in)password
- The password (in)java.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public void connect(java.lang.String machineName) throws java.io.IOException, AutomationException
connect
in interface IServerConnection
machineName
- The machineName (in)java.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public IServerObjectManager getServerObjectManager() throws java.io.IOException, AutomationException
getServerObjectManager
in interface IServerConnection
java.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public IServerObjectAdmin getServerObjectAdmin() throws java.io.IOException, AutomationException
getServerObjectAdmin
in interface IServerConnection
java.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public IServerObjectManager getServerObjectManager2(java.lang.String userInfo) throws java.io.IOException, AutomationException
userInfo
- Stringjava.io.IOException
- If there are communications problems.AutomationException
- If the remote server throws an exception.public java.lang.String getHostName()