User Guide

getConfig() 25
Flash Media Server has four server configuration files: Server.xml, Adaptor.xml, Vhost.xml,
and Application.xml. Depending on your permissions, you can get configuration keys for all
these files, as described in the following list:
For the Server.xml file, specify Admin or Server as the first subkey. All subsequent keys
correspond to tags that are relative to the
Admin or Server tag in the Server.xml file.
You must be a server administrator to view configuration keys in the
Server tag.
Virtual host administrators can view configuration keys in the
Admin tag for their own
virtual host only. They might not be able to view certain kinds of sensitive information;
for example, they can view the names of other administrators for their own virtual host,
but they cannot view those administrators’ passwords or permission settings.
For the Adaptor.xml file, specify as the first subkey Adaptor:adaptor_name, where
adaptor_name is the name of the adaptor. All subsequent keys correspond to tags that are
relative to the
Adaptor tag in the Adaptor.xml file.
For the Vhost.xml file, specify as the first subkey Adaptor:adaptor_name/
VirtualHost:vhost_name
, where adaptor_name is the name of the adaptor and
vhost_name is the name of the virtual host. All subsequent keys correspond to tags that
are relative to the
VirtualHost tag in the Vhost.xml file.
For the Application.xml file of an application that is running on the same virtual host to
which you connected when you logged on to the administration server, specify as the first
subkey
Application:app_name, where app_name is the name of the application.
To get a key in the Application.xml file for an application that is running on a different
virtual host, specify the full key
Adaptor:adaptor_name/VirtualHost:vhost_name/
Application:app_name
. You must also specify the scope parameter.
To get the default Application.xml file, specify
Application without the colon (:) and
the
app_name attribute.
scope String; to get a configuration key in the Server.xml file, Adaptor.xml file, or
Vhost.xml file, specify a slash (
/).
To get a configuration key in the Application.xml file for an application that is running on the
same virtual host to which you connected when you logged on to Flash Media Server, omit
this parameter.
TIP
To determine the adaptor or virtual host to which you’re connected, use the
getAdminContext method.