@Deprecated public abstract class InvocableResource extends java.lang.Object implements Resource
InvocableResource
class is used by a container to indicate
that the invocation of a service is a resource for which access is controlled.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
methodName
Deprecated.
|
private java.lang.String[] |
methodParams
Deprecated.
|
private java.lang.String[] |
paramNames
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
InvocableResource()
Deprecated.
Constructs a new, uninitialized
InvocableResource . |
|
InvocableResource(java.lang.String methodName,
java.lang.String[] methodParams,
java.lang.String[] paramNames)
Deprecated.
Constructs a new
InvocableResource with a target name composed from the
the methodName , methodParams and
paramNames parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object another)
Deprecated.
Compares this resource to the specified object.
|
java.lang.String |
getMethodName()
Deprecated.
Gets the name of the method (service) on this Invocable resource.
|
java.lang.String[] |
getMethodParams()
Deprecated.
Gets the types of the parameters that make up the method signature.
|
java.lang.String[] |
getParamNames()
Deprecated.
Get the names of the parameters for this service.
|
void |
initialize(java.lang.String definitionString)
Deprecated.
Resets the resource and initializes it by parsing the input string.
|
void |
initialize(java.lang.String methodName,
java.lang.String[] methodParams,
java.lang.String[] paramNames)
Deprecated.
Resets and reinitializes an
InvocableResource with a target
name composed from the methodName , methodParams
and paramNames parameters. |
void |
reset()
Deprecated.
Resets the state of the resource to be uninitialized.
|
protected void |
writeResourceString(java.lang.StringBuffer buf)
Deprecated.
Writes a string representation of the resource to buffer.
|
private java.lang.String methodName
private java.lang.String[] methodParams
private java.lang.String[] paramNames
protected InvocableResource()
InvocableResource
.public InvocableResource(java.lang.String methodName, java.lang.String[] methodParams, java.lang.String[] paramNames)
InvocableResource
with a target name composed from the
the methodName
, methodParams
and
paramNames
parameters.methodName
- a String representing the name of the method
on this Invocable resource.
A value of null
indicates that the security policy
for the resource pertains to all methods that match
the other parameters of the resource specification,
without consideration of the method name.methodParams
- an array of Strings specifying the signature
of the target method. Each element in the array
contains the type of that parameter, described as a
fully-qualified java class.
A value of null
indicates that the method
being protected accepts no parameters.paramNames
- an array of Strings specifying the names
associated with each of the parameters
of the target method.
A value of null
indicates that the method
being protected accepts no parameters or that
the paramaters are passed ordinally and are unnamed.
In the case that parameters are unnamed, they are
referred to by the name param_public void initialize(java.lang.String methodName, java.lang.String[] methodParams, java.lang.String[] paramNames)
InvocableResource
with a target
name composed from the methodName
, methodParams
and paramNames
parameters.methodName
- a String representing the name of the service
that is to be invoked.
A value of null
indicates that the security policy
for the resource pertains to all methods that match
the other parameters of the resource specification,
without consideration of the method name.methodParams
- an array of Strings specifying the signature
of the target method. Each element in the array
contains the type of that parameter, described as a
fully-qualified java class.
A value of null
indicates that the method
being protected accepts no parameters.paramNames
- an array of Strings specifying the names
associated with each of the parameters
of the target method.
A value of null
indicates that the method
being protected accepts no parameters or that
the paramaters are passed ordinally and are unnamed.
In the case that parameters are unnamed, they are
referred to by the name param_public void initialize(java.lang.String definitionString) throws java.lang.Exception
definitionString
- an input String whose format is a URI with
CGI parameters, where the head of the URI represents
the methodName
, the paramNames
are taken from the CGI parameters, and the types of the
parameters are passed in in place of the paramater values
and become the value of the methodParams
.java.lang.Exception
public java.lang.String getMethodName()
null
indicates that the security policy
for the resource pertains to all methods that match
the other parameters of the resource specification,
without consideration of the method name.public java.lang.String[] getMethodParams()
null
indicates that the method
being protected accepts no parameters.public java.lang.String[] getParamNames()
null
indicates that the method
being protected accepts no parameters or that
the paramaters are passed ordinally and are unnamed.
In the case that parameters are unnamed, they are
referred to by the name param_public boolean equals(java.lang.Object another)
equals
in interface Resource
equals
in class java.lang.Object
another
- another resource with which to compare the current resource.TRUE
if the resource passed in matches the resource
represented by the implementation of this interface,
and FALSE
otherwise.protected void writeResourceString(java.lang.StringBuffer buf)
The format of the string is as follows:
/methodName?methodParam=paramName&methodParam=paramName
buf
- buffer to write to.public void reset()
Resource
being destroyed.