|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpl.mipl.mdms.FileService.komodo.api.Domain jpl.mipl.mdms.FileService.komodo.api.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 infomation 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 |
jpl.mipl.mdms.FileService.komodo.api.ServerInfo |
getServerInfo(String serverName)
Returns the server infomation object for input servername parameter. |
jpl.mipl.mdms.FileService.komodo.api.ServerInfo |
getServerInfo(String groupName,
String serverName)
Returns the server infomation object for input server name and group name parameters. |
jpl.mipl.mdms.FileService.komodo.api.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 |
String |
getUri()
Method to return the domain file's URI |
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 failurespublic SaxDomain(URL url) throws SessionException
url
- URL location of domainFile
SessionException
- when session failureMethod Detail |
protected void _load() throws SessionException
SessionException
- when session failurepublic String toString()
toString
in class Domain
public String getDefaultGroup()
getDefaultGroup
in class Domain
public LinkedList getGroupNames()
getGroupNames
in class Domain
public LinkedList getFileTypeNames() throws SessionException
getFileTypeNames
in class Domain
SessionException
- when operation failspublic LinkedList getFileTypeNames(String groupName) throws SessionException
getFileTypeNames
in class Domain
groupName
- the name of the server group
SessionException
- when operation failspublic jpl.mipl.mdms.FileService.komodo.api.ServerInfo getServerInfo(String serverName) throws SessionException
getServerInfo
in class Domain
serverName
- the server name
SessionException
- if match not foundpublic jpl.mipl.mdms.FileService.komodo.api.ServerInfo getServerInfo(String groupName, String serverName) throws SessionException
getServerInfo
in class Domain
serverName
- the server namegroupName
- the server group name
SessionException
- if match not foundpublic jpl.mipl.mdms.FileService.komodo.api.ServerInfo getServerInfoByIndex(int index)
getServerInfoByIndex
in class Domain
index
- the index entry to the server list
public LinkedList getServerInfoFromFileType(String groupName, String typeName) throws SessionException
getServerInfoFromFileType
in class Domain
groupName
- the server group nametypeName
- the file type name
SessionException
- when operation failspublic FileTypeInfo getFileType(String typeName) throws SessionException
getFileType
in class Domain
typeName
- the file type name
SessionException
- if match is not foundpublic FileTypeInfo getFileType(String groupName, String typeName) throws SessionException
getFileType
in class Domain
groupName
- the server group nametypeName
- the file type name
SessionException
- if match is not foundpublic String getUri()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |