|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.server.ServerConnection
public class ServerConnection
Used for connecting to the GIS server and getting the ServerObjectManager and ServerObjectAdmin.
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.server.IServerConnection |
---|
IID, IID425b0a5b_bf1b_4f0e_9e75_37324a12e5f9, xxDummy |
Constructor Summary | |
---|---|
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(Object obj)
Construct a ServerConnection using a reference to such an object returned from a COM server |
|
ServerConnection(String host)
Construct a ServerConnection on specified host. |
|
ServerConnection(String host,
com.esri.arcgis.interop.AuthInfo authInfo)
Deprecated. use AuthInfo.setDefault(...) or AuthInfo.setThreadDefault(...) See Security section in the J-Integra documentation |
Method Summary | |
---|---|
static ServerConnection |
bindUsingMoniker(String moniker)
bindUsingMoniker. |
void |
connect(String machineName)
connect. |
void |
connect(String machineName,
String domain,
String user,
String password)
Connects to the GIS server specified by the machineName and authenticates the user with the credentials provided as arguments. |
boolean |
equals(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 String |
getClsid()
|
String |
getHostName()
Returns the name of the server machine to which this connection was created. |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
J-Integra internal method |
protected String |
getJintegraVersion()
|
Object |
getPropertyByName(String name)
getPropertyByName. |
Object |
getPropertyByName(String name,
Object rhs)
getPropertyByName. |
IServerObjectAdmin |
getServerObjectAdmin()
getServerObjectAdmin. |
IServerObjectManager |
getServerObjectManager()
getServerObjectManager. |
IServerObjectManager |
getServerObjectManager2(String userInfo)
getServerObjectManager2. |
int |
hashCode()
the hashcode for this object |
Object |
invokeMethodByName(String name,
Object[] parameters)
invokeMethodByName. |
void |
release()
Release a Server. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerConnection() throws IOException, UnknownHostException
IOException
- if there are problems communicating via DCOM
UnknownHostException
- if the host can not be foundpublic ServerConnection(String host) throws IOException, UnknownHostException
host
- the host on which the object should be created
IOException
- if there are problems communicating via DCOM
UnknownHostException
- if the host can not be foundpublic ServerConnection(com.esri.arcgis.interop.AuthInfo authInfo) throws IOException, UnknownHostException
IOException
UnknownHostException
com.esri.arcgis.interop.AuthInfo.setDefault(..)
public ServerConnection(String host, com.esri.arcgis.interop.AuthInfo authInfo) throws IOException, UnknownHostException
IOException
UnknownHostException
com.esri.arcgis.interop.AuthInfo.setDefault(..)
public ServerConnection(Object obj) throws IOException
obj
- an object returned from a COM server
IOException
- if there are problems communicating via DCOMMethod Detail |
---|
public static String getClsid()
protected String getJintegraVersion()
public IServer getAsIServer()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static ServerConnection getActiveObject() throws AutomationException, IOException
IOException
- If there are communications problems.
AutomationException
- If there was an error attaching to the instance.public static ServerConnection bindUsingMoniker(String moniker) throws AutomationException, IOException
moniker
- The ObjRef Moniker (Created using Windows CreateObjrefMoniker() and IMoniker->GetDisplayName)
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 Object getPropertyByName(String name) throws NoSuchFieldException, IOException, AutomationException
name
- The name of the property to get.
NoSuchFieldException
- If the property does not exit.
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public Object getPropertyByName(String name, Object rhs) throws NoSuchFieldException, IOException, AutomationException
name
- The name of the property to get.rhs
- A parameter used when getting the proxy
NoSuchFieldException
- If the property does not exit.
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public Object invokeMethodByName(String name, Object[] parameters) throws NoSuchMethodException, 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).
NoSuchMethodException
- If the method does not exit.
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public void connect(String machineName, String domain, String user, String password) throws 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)
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public void connect(String machineName) throws IOException, AutomationException
connect
in interface IServerConnection
machineName
- The machineName (in)
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public IServerObjectManager getServerObjectManager() throws IOException, AutomationException
getServerObjectManager
in interface IServerConnection
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public IServerObjectAdmin getServerObjectAdmin() throws IOException, AutomationException
getServerObjectAdmin
in interface IServerConnection
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public IServerObjectManager getServerObjectManager2(String userInfo) throws IOException, AutomationException
userInfo
- String
IOException
- If there are communications problems.
AutomationException
- If the remote server throws an exception.public String getHostName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |