|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.MethodConstraints
Specifies the security constraints for a specific remote method.
Constructor Summary | |
MethodConstraints(java.lang.String name,
java.lang.Class[] parameterTypes,
SecurityConstraints constraints)
Creates constraints for the specified method or methods. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Two instances of this class are equal if they have equal names, equal parameter types, and equal constraints. |
SecurityConstraints |
getConstraints()
Returns the constraints for the specified remote method or methods, as a non- null instance. |
java.lang.String |
getName()
Returns the name of the remote method to which the constraints are applied. |
java.lang.Class[] |
getParameterTypes()
Returns the parameter types of the remote method, in declared order, as a new non- null array, or returns null for
wildcard parameter types. |
int |
hashCode()
Returns a hash code value for this object. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MethodConstraints(java.lang.String name, java.lang.Class[] parameterTypes, SecurityConstraints constraints)
null
, which is treated the same as the
empty instance. The value of parameterTypes
can be
null
, which is treated as a wildcard, matching all
methods with the specified name. The array passed to the constructor is
neither modified nor retained; subsequent changes to that array have no
effect on the instance created.name
- the name of the methodparameterTypes
- the formal parameter types of the method,
in declared order, or null
for wildcard parameter typesconstraints
- the constraints, or null
NullPointerException
- if the name of the method is
null
or any element of parameterTypes
is
null
Method Detail |
public java.lang.String getName()
public java.lang.Class[] getParameterTypes()
null
array, or returns null
for
wildcard parameter types.null
array,
or null
for wildcard parameter typespublic SecurityConstraints getConstraints()
null
instance.null
instancepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |