|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.FileService.komodo.api.Domain
jpl.mipl.mdms.FileService.komodo.api.SaxDomain
public class SaxDomain
SAX XML parsing implementation of Domain object
| Field Summary | |
|---|---|
protected static String |
DEFGRP_KEY
|
protected static String |
GROUPS_KEY
|
protected static String |
SERVERS_KEY
|
protected static String |
TYPES_KEY
|
protected static String |
URI_KEY
|
| Constructor Summary | |
|---|---|
SaxDomain(String uri)
Constructor, location of domain file. |
|
SaxDomain(URL url)
Constructor, location of domain file. |
|
| Method Summary | |
|---|---|
protected void |
_load()
Private method to do the XML parsing and load the hashtable. |
String |
getDefaultGroup()
Get the default server group specified in domain file. |
FileTypeInfo |
getFileType(String typeName)
Deprecated. please use the getFileType(String groupName, String typeName) method |
FileTypeInfo |
getFileType(String groupName,
String typeName)
Returns the file type information object for input file type name parameter. |
LinkedList |
getFileTypeNames()
Deprecated. doesn't respect server group namespace, use getFileTypeNames(String groupName) instead |
LinkedList |
getFileTypeNames(String groupName)
Get a list of sorted file type names for a specified server group |
LinkedList |
getGroupNames()
Get a list of sorted server group names |
ServerInfo |
getServerInfo(String serverName)
Returns the server infomation object for input servername parameter. |
ServerInfo |
getServerInfo(String groupName,
String serverName)
Returns the server infomation object for input server name and group name parameters. |
ServerInfo |
getServerInfoByIndex(int index)
Returns the server at the specified index, or null if index is out of bounds. |
LinkedList |
getServerInfoFromFileType(String groupName,
String typeName)
Method to return a LinkedList of ServerInfo objects for a given file type name and server group |
LinkedList |
getServerInfoFromFileType2(String groupName,
String typeName)
Method to return a LinkedList of ServerInfo objects for a given file type name and server group |
LinkedList |
getServerInfoFromGroup(String groupName)
Method to return a LinkedList of ServerInfo objects for a given server group |
String |
getUri()
Method to return the domain file's URI |
boolean |
isGroupDefined(String servergroup)
Returns true if servergroup passed in as parameter is defined |
String |
toString()
Utility method to output the Domain hash to a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String URI_KEY
protected static final String GROUPS_KEY
protected static final String SERVERS_KEY
protected static final String TYPES_KEY
protected static final String DEFGRP_KEY
| Constructor Detail |
|---|
public SaxDomain(String uri)
throws SessionException
uri - the full path to a domain file.
SessionException - when other failures
public SaxDomain(URL url)
throws SessionException
url - URL location of domainFile
SessionException - when session failure| Method Detail |
|---|
protected void _load()
throws SessionException
SessionException - when session failurepublic String toString()
toString in class Domainpublic String getDefaultGroup()
getDefaultGroup in class Domainpublic LinkedList getGroupNames()
getGroupNames in class Domainpublic boolean isGroupDefined(String servergroup)
isGroupDefined in class Domainservergroup - Name of server group to query, case-insensitive
public LinkedList getFileTypeNames()
throws SessionException
getFileTypeNames in class DomainSessionException - when operation fails
public LinkedList getFileTypeNames(String groupName)
throws SessionException
getFileTypeNames in class DomaingroupName - the name of the server group
SessionException - when operation fails
public ServerInfo getServerInfo(String serverName)
throws SessionException
getServerInfo in class DomainserverName - the server name
SessionException - if match not found
public ServerInfo getServerInfo(String groupName,
String serverName)
throws SessionException
getServerInfo in class DomainserverName - the server namegroupName - the server group name
SessionException - if match not foundpublic ServerInfo getServerInfoByIndex(int index)
getServerInfoByIndex in class Domainindex - the index entry to the server list
public LinkedList getServerInfoFromFileType(String groupName,
String typeName)
throws SessionException
getServerInfoFromFileType in class DomaingroupName - the server group nametypeName - the file type name
SessionException - when operation fails
public LinkedList getServerInfoFromGroup(String groupName)
throws SessionException
getServerInfoFromGroup in class DomaingroupName - the server group name
SessionException - when operation fails
public LinkedList getServerInfoFromFileType2(String groupName,
String typeName)
throws SessionException
groupName - the server group nametypeName - the file type name
SessionException - when operation fails
public FileTypeInfo getFileType(String typeName)
throws SessionException
getFileType in class DomaintypeName - the file type name
SessionException - if match is not found
public FileTypeInfo getFileType(String groupName,
String typeName)
throws SessionException
getFileType in class DomaingroupName - the server group nametypeName - the file type name
SessionException - if unique match is not foundpublic String getUri()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||