|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.service.Services
public class Services
The Services object retrieves a list of services from a specified ArcIMS Server location, and stores them as Service objects in a collection.
Constructor Summary | |
---|---|
Services()
Constructs an instance of a Services object. |
Method Summary | |
---|---|
void |
addService(Service obj)
Adds a Service object to the services collection. |
void |
clearServices()
Clears all Service object from the services collection. |
Service |
getService(int index)
Returns a Service object by index from the services collection. |
void |
getServices(String host,
int port,
String username,
String password)
Gets a list of services from a given ArcIMS Application Server / TCP. |
void |
getServices(URL url,
String username,
String password)
Gets a list of services from a given ArcIMS Application Server / HTTP. |
int |
getServicesCount()
Remove the count of Service objects in the collection. |
void |
removeService(int index)
Removes a Service object by index from the services collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Services()
Services services = new Services();
Method Detail |
---|
public void addService(Service obj)
obj
- the Service object to add.getService(int)
,
removeService(int)
public Service getService(int index)
Service service = services.getService(0);
addService(com.esri.aims.mtier.model.service.Service)
public void removeService(int index)
services.removeService(0);
addService(com.esri.aims.mtier.model.service.Service)
,
clearServices()
public void clearServices()
services.clearServices();
addService(com.esri.aims.mtier.model.service.Service)
,
removeService(int)
,
addService(com.esri.aims.mtier.model.service.Service)
public int getServicesCount()
int count = services.getServicesCount();
public void getServices(String host, int port, String username, String password)
services.getServices("localhost", 5300);
host
- the Application Server host name.port
- the port where the Application Server is listening.public void getServices(URL url, String username, String password)
try{
services.getServices(new java.net.URL("http://localhost"));
}
catch(java.net.MalformedURLException me){
System.out.println(me.getMessage());
}
url
- the url location of the ArcIMS services.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |