Macromedia flash media server 2-server-side actionscript language reference Benutzerhandbuch
28
Server Management ActionScript Language Reference
Flash Media Server has six server configuration files: Server.xml, Users.xml, Logger.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:
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:
■
"/" specifies Server.xml.
■
"Users" specifies Users.xml for server administrators.
■
"Logger" specifies Logger.xml.
■
"Adaptor:<adaptor_name>" specifies Adaptor.xml. The <adaptor_name> is the name of
the adaptor. You must have server administrator privileges to access this file. If
<adaptor_name> is not the name of the adaptor the caller is connected to, the call fails.
the adaptor. You must have server administrator privileges to access this file. If
<adaptor_name> is not the name of the adaptor the caller is connected to, the call fails.
■
"Adaptor:<adaptor_name>/VHost:<vhost_name>" specifies VHost.xml. <vhost_name>
is the name of the vhost of interest. If <adaptor_name> is not the name of the adaptor the
caller is connected to, or <vhost_name> is not the name of the vhost that the caller is
connected to, the call fails.
is the name of the vhost of interest. If <adaptor_name> is not the name of the adaptor the
caller is connected to, or <vhost_name> is not the name of the vhost that the caller is
connected to, the call fails.
■
"Adaptor:<adaptor_name>/VHost:<vhost_name>/Users.xml" specifies Users.xml for
vhost administrators.
vhost administrators.
■
"Adaptor:<adaptor_name>/VHost:<vhost_name>/App[:<app_name>]" specifies
Application.xml. If no <app_name> is specified, the default Application.xml file is
assumed. Otherwise, the application-specific Application.xml for the specified application
is used. If the specified application is not defined, or the application does not have an
application-specific Application.xml file, the call fails.
Application.xml. If no <app_name> is specified, the default Application.xml file is
assumed. Otherwise, the application-specific Application.xml for the specified application
is used. If the specified application is not defined, or the application does not have an
application-specific Application.xml file, the call fails.
Returns
If the call succeeds, the server sends a reply information object with a
level
property of
status
, a
code
property of
NetConnection.Call.Success
, and a
data
property that is an
XML string for the specified tag.
If the specified tag is a leaf node, returns the tag data. Otherwise, returns the tag itself. For
example, if the desired tag is
example, if the desired tag is
<foo>bar</foo>
, returns
"bar"
. However, if the desired tag
contains child tags such as
<foo><bar>foobar</bar></foo>
, returns
"
<foo><bar>foobar</bar></foo>"
.
If the call fails (that is, if the specified configuration key isn’t found), the server returns an
empty string.
empty string.
TIP
To determine the adaptor or virtual host to which you’re connected, call the
method.