com.moximedia.aims
Class AimsService

java.lang.Object
  extended bycom.moximedia.aims.AimsService
All Implemented Interfaces:
java.io.Serializable

public class AimsService
extends java.lang.Object
implements java.io.Serializable

Implementation of ArcIMS service element. This class represents settings for an ArcIMS service as received from a GETCLIENTSERVICES request.

See Also:
Serialized Form

Field Summary
static int SERVICE_ACCESS_PRIVATE
           
static int SERVICE_ACCESS_PUBLIC
           
static int SERVICE_IMAGE_TYPE_GIF
           
static int SERVICE_IMAGE_TYPE_JPG
           
static int SERVICE_IMAGE_TYPE_PNG
           
static int SERVICE_STATUS_DISABLED
           
static int SERVICE_STATUS_ENABLED
           
static int SERVICE_TYPE_FEATURE
           
static int SERVICE_TYPE_IMAGE
           
static int SERVICE_TYPE_ROUTE
           
 
Constructor Summary
AimsService()
          Creates new AimsService
 
Method Summary
 java.lang.String getName()
          Gets the name of the map service.
 int getType()
          Gets the type of the map service, either AimsService.SERVICE_TYPE_IMAGE, AimsService.SERVICE_TYPE_FEATURE, or AimsService.SERVICE_TYPE_ROUTE.
 boolean isEnabled()
           
 boolean isFeatureService()
          Returns true if the service is a feature service.
 boolean isImageService()
          Returns true if the service is an image service.
 boolean isRouteService()
          Returns true if the service is a route service.
 void setAxlAttribute(java.lang.String tag, java.lang.String name, java.lang.String value)
          Sets one of the attributes of this object using a string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_ACCESS_PUBLIC

public static final int SERVICE_ACCESS_PUBLIC
See Also:
Constant Field Values

SERVICE_ACCESS_PRIVATE

public static final int SERVICE_ACCESS_PRIVATE
See Also:
Constant Field Values

SERVICE_STATUS_ENABLED

public static final int SERVICE_STATUS_ENABLED
See Also:
Constant Field Values

SERVICE_STATUS_DISABLED

public static final int SERVICE_STATUS_DISABLED
See Also:
Constant Field Values

SERVICE_TYPE_IMAGE

public static final int SERVICE_TYPE_IMAGE
See Also:
Constant Field Values

SERVICE_TYPE_FEATURE

public static final int SERVICE_TYPE_FEATURE
See Also:
Constant Field Values

SERVICE_TYPE_ROUTE

public static final int SERVICE_TYPE_ROUTE
See Also:
Constant Field Values

SERVICE_IMAGE_TYPE_PNG

public static final int SERVICE_IMAGE_TYPE_PNG
See Also:
Constant Field Values

SERVICE_IMAGE_TYPE_JPG

public static final int SERVICE_IMAGE_TYPE_JPG
See Also:
Constant Field Values

SERVICE_IMAGE_TYPE_GIF

public static final int SERVICE_IMAGE_TYPE_GIF
See Also:
Constant Field Values
Constructor Detail

AimsService

public AimsService()
Creates new AimsService

Method Detail

getName

public java.lang.String getName()
Gets the name of the map service.

Returns:
The name of the map service.

getType

public int getType()
Gets the type of the map service, either AimsService.SERVICE_TYPE_IMAGE, AimsService.SERVICE_TYPE_FEATURE, or AimsService.SERVICE_TYPE_ROUTE.


isEnabled

public boolean isEnabled()

isFeatureService

public boolean isFeatureService()
Returns true if the service is a feature service.

Returns:
True if the service is a feature service, otherwise false.

isImageService

public boolean isImageService()
Returns true if the service is an image service.

Returns:
True if the service is an image service, otherwise false.

isRouteService

public boolean isRouteService()
Returns true if the service is a route service.

Returns:
True if the service is a route service, otherwise false.

setAxlAttribute

public void setAxlAttribute(java.lang.String tag,
                            java.lang.String name,
                            java.lang.String value)
Sets one of the attributes of this object using a string value. This method can only be called from the SAX event handler.

Parameters:
tag - The AXL element tag containing this attribute.
name - The AXL attribute name.
value - The AXL attribute value.