ServerResource

Constructs a new ServerResource with a target name composed
from the application, server,
and action parameters.

Parameters:

application - a String indicating the name of the application in
which the resource is deployed, as it appears in
the corresponding
<display-name> element. The
<display-name> element is
associated with an
<application> element in the
deployment descriptor, in an .ear
file.
A value of null indicates that the
resource is not deployed as part of an
application.

server - a String representing the name of the Server
resource.

action - a String representing the name of the action being
requested on the resource.
A value of null indicates that the security
policy for the resource pertains to all actions that match
the other parameters of the resource specification, without
consideration for the action name.
Valid values for this parameter are
restricted to the following:

initialize

Replaces application, server, and action
parameters of the resource with the specified values.

Parameters:

application - a String indicating the name of the application in
which the resource is deployed, as it appears in
the corresponding
<display-name> element. The
<display-name> element is
associated with an
<application> element in the
deployment descriptor, in an .ear
file.
A value of null indicates that the
resource is not deployed as part of an
application.

server - a String representing the name of the Server
resource.

action - a String representing the name of the action being
requested on the resource.
A value of null indicates that the security
policy for the resource pertains to all actions that match
the other parameters of the resource specification, without
consideration for the action name.
Valid values for this parameter are
restricted to the following:

getRepeatingFieldIndex

getRepeatingFieldIndex returns an index into the
array returned by getKeys() that signifies what part
of the Resource's fields repeat as the hierarchy is traversed.
For example, in the URLResource, the
httpMethod is repeated as the hierarchy is walked.
A value of -1 indicates that there are no repeating
fields.

writeResourceString

Each type of resource is first printed in angled brackets. Then,
each key is printed, in order, along with it's value. The keys
are comma-separated. Values that are lists are
comma-separated and delineated by open and close curly braces.
Each value is printed as is, except that commas (,), open
braces ({), close braces (}), and back slashes (\) are
each escaped with a backslash.

Note: Because this method produces a result
based on the concatenation of strings, it
may be expensive in terms of performance.

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.