java.io.Serializable, Resource, SelfDescribingResource, SelfDescribingResourceV2public final class ServerResource extends ResourceBase
ServerResource class is used by a container to specify the
Server resource (and method related to the resource) that a caller is
attempting to access.
The toString format (which is produced by the ResourceBase
class) for a Server resource is:
type=<svr>, application=, server=MyServer, action=shutdown
id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, valuesLIST_FIELD_TYPE, NORMAL_FIELD_TYPE, PATH_FIELD_TYPE, UNDEFINED_FIELD_TYPE| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
Compares this resource to the resource in the specified object.
|
java.lang.String |
getActionName() |
Gets the name of the action being requested on the
ServerResource. |
java.lang.String |
getApplicationName() |
Gets the name of the application associated with the
ServerResource. |
java.lang.String[] |
getKeys() |
Gets keys for the
ServerResource. |
int |
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. |
int |
getRepeatingFieldTerminatingIndex() |
The field returned by
getRepeatingFieldIndex is
repeated as the Resource is shortened up to and including this
field index. |
java.lang.String |
getServerName() |
Gets the name of the
ServerResource. |
java.lang.String |
getType() |
Gets the type of this resource (
ServerResource). |
protected Resource |
makeParent() |
Gets a
Resource object that represents the parent of the
current ServerResource. |
protected void |
writeResourceString(java.lang.StringBuffer buf) |
Writes a string representation of the resource to buffer.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitappendArrayValue, appendValue, getFieldType, getID, getParentResource, getValues, hashCode, init, init, isTransitiveField, toStringpublic java.lang.String getType()
ServerResource).protected Resource makeParent()
Resource object that represents the parent of the
current ServerResource. If the resource does not have a parent, the value of
null must be returned.
The parentage hierarchy for the ServerResource is:
type=<svr>, application=, server=MyServer, action=shutdown
type=<svr>, application=, server=MyServer
type=<svr>, action=shutdown
type=<svr>
The old deprecated parentage hierarchy for the ServerResource
(with -Dweblogic.security.scopeResourceAction) is:
type=<svr>, application=, server=MyServer
, action=shutdown
type=<svr>, application=, server=MyServer
type=<svr>
makeParent in class ResourceBaseResource object of the parent resource.public int getRepeatingFieldIndex()
SelfDescribingResourcegetRepeatingFieldIndex 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.getRepeatingFieldIndex in interface SelfDescribingResourcegetRepeatingFieldIndex in class ResourceBasepublic int getRepeatingFieldTerminatingIndex()
SelfDescribingResourcegetRepeatingFieldIndex is
repeated as the Resource is shortened up to and including this
field index. After this field index the repetition is no longer
applied.getRepeatingFieldTerminatingIndex in interface SelfDescribingResourcegetRepeatingFieldTerminatingIndex in class ResourceBaseint describing the terminating index or
getKeys().length if nonepublic java.lang.String[] getKeys()
ServerResource.getKeys in interface ResourcegetKeys in class ResourceBaseServerResource's keys.public java.lang.String getServerName()
ServerResource.ServerResource, represented as a String.public java.lang.String getActionName()
ServerResource.ServerResource,
represented as a String.public java.lang.String getApplicationName()
ServerResource.ServerResource,
represented as a String.protected void writeResourceString(java.lang.StringBuffer buf)
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.
writeResourceString in class ResourceBasebuf - buffer to write to.public boolean equals(java.lang.Object obj)
equals in interface Resourceequals in class ResourceBaseobj - the other resource with which to compare this resource.TRUE if the resource passed in matches this resource,
and FALSE otherwise.Object.equals(Object)