|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.security.proxytrust.SingletonProxyTrustIterator
public class SingletonProxyTrustIterator
A simple ProxyTrustIterator
that produces a single object
as the only element of the iteration.
Constructor Summary | |
---|---|
SingletonProxyTrustIterator(Object obj)
Creates an instance with the specified object to use as the only element of the iteration. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements, and
false otherwise. |
Object |
next()
Returns the next element in the iteration. |
void |
setException(RemoteException e)
Provides the iteration with a RemoteException thrown from
a remote call made while attempting to obtain a
TrustVerifier from the object
returned by the most recent call to next . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingletonProxyTrustIterator(Object obj)
obj
- the object to use as the element of the iteration
NullPointerException
- if the argument is null
Method Detail |
---|
public boolean hasNext()
ProxyTrustIterator
true
if the iteration has more elements, and
false
otherwise.
hasNext
in interface ProxyTrustIterator
true
if the iteration has more elements, and
false
otherwisepublic Object next()
ProxyTrustIterator
NoSuchElementException
) without
terminating the iteration.
next
in interface ProxyTrustIterator
NoSuchElementException
- if the iteration has no more elementspublic void setException(RemoteException e)
ProxyTrustIterator
RemoteException
thrown from
a remote call made while attempting to obtain a
TrustVerifier
from the object
returned by the most recent call to next
. Setting an
exception may influence which (if any) elements are subsequently
produced by the iteration. (A RemoteException
thrown
directly by next
should not be passed to this method.)
setException
in interface ProxyTrustIterator
e
- RemoteException
thrown from a remote call
NullPointerException
- if the argument is null
IllegalStateException
- if next
has never been
called, or if this method has already been called since the most
recent call to next
, or if hasNext
has been
called since the most recent call to next
, or if the most
recent call to next
threw a RemoteException
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |