com.sun.jini.mercury
Class MailboxAdminProxy.ConstrainableMailboxAdminProxy
java.lang.Object
com.sun.jini.mercury.MailboxAdminProxy
com.sun.jini.mercury.MailboxAdminProxy.ConstrainableMailboxAdminProxy
- All Implemented Interfaces:
- DestroyAdmin, MailboxAdmin, Serializable, JoinAdmin, RemoteMethodControl, ReferentUuid
- Enclosing class:
- MailboxAdminProxy
static final class MailboxAdminProxy.ConstrainableMailboxAdminProxy
- extends MailboxAdminProxy
- implements RemoteMethodControl
Methods inherited from class com.sun.jini.mercury.MailboxAdminProxy |
addLookupAttributes, addLookupGroups, addLookupLocators, create, destroy, equals, getLookupAttributes, getLookupGroups, getLookupLocators, getReferentUuid, hashCode, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
MailboxAdminProxy.ConstrainableMailboxAdminProxy
private MailboxAdminProxy.ConstrainableMailboxAdminProxy(MailboxBackEnd server,
Uuid proxyID,
MethodConstraints methodConstraints)
- Constructs a new
ConstrainableMailboxAdminProxy
instance.
For a description of all but the methodConstraints
argument (provided below), refer to the description for the
constructor of this class' super class.
- Parameters:
methodConstraints
- the client method constraints to place on
this proxy (may be null
).
constrainServer
private static MailboxBackEnd constrainServer(MailboxBackEnd server,
MethodConstraints constraints)
- Returns a copy of the given server proxy having the client method
constraints that result after the specified method mapping is
applied to the given client method constraints.
setConstraints
public RemoteMethodControl setConstraints(MethodConstraints constraints)
- Returns a new copy of this proxy class
(
ConstrainableMailboxAdminProxy
) with its client
constraints set to the specified constraints. A null
value is interpreted as mapping all methods to empty constraints.
- Specified by:
setConstraints
in interface RemoteMethodControl
- Parameters:
constraints
- client constraints, or null
- Returns:
- a new copy of this proxy with the client constraints set to the
specified constraints
- See Also:
RemoteMethodControl.getConstraints()
getConstraints
public MethodConstraints getConstraints()
- Returns the client constraints placed on the current instance
of this proxy class (
ConstrainableMailboxAdminProxy
).
The value returned by this method can be null
,
which is interpreted as mapping all methods to empty constraints.
- Specified by:
getConstraints
in interface RemoteMethodControl
- Returns:
- the client constraints, or
null
- See Also:
RemoteMethodControl.setConstraints(net.jini.core.constraint.MethodConstraints)
getProxyTrustIterator
private ProxyTrustIterator getProxyTrustIterator()
- Returns a proxy trust iterator that is used in
ProxyTrustVerifier
to retrieve this object's
trust verifier.
readObject
private void readObject(ObjectInputStream s)
throws IOException,
ClassNotFoundException
- Performs various functions related to the trust verification
process for the current instance of this proxy class, as
detailed in the description for this class.
- Throws:
InvalidObjectException
- if any of the
requirements for trust verification (as detailed in the
class description) are not satisfied.
IOException
ClassNotFoundException
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.