com.sun.jini.mercury
Class MailboxAdminProxy.ConstrainableMailboxAdminProxy

java.lang.Object
  extended by com.sun.jini.mercury.MailboxAdminProxy
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.jini.mercury.MailboxAdminProxy
MailboxAdminProxy.ConstrainableMailboxAdminProxy
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class com.sun.jini.mercury.MailboxAdminProxy
proxyID, server
 
Constructor Summary
private MailboxAdminProxy.ConstrainableMailboxAdminProxy(MailboxBackEnd server, Uuid proxyID, MethodConstraints methodConstraints)
          Constructs a new ConstrainableMailboxAdminProxy instance.
 
Method Summary
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.
 MethodConstraints getConstraints()
          Returns the client constraints placed on the current instance of this proxy class (ConstrainableMailboxAdminProxy).
private  ProxyTrustIterator getProxyTrustIterator()
          Returns a proxy trust iterator that is used in ProxyTrustVerifier to retrieve this object's trust verifier.
private  void readObject(ObjectInputStream s)
          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.
 RemoteMethodControl setConstraints(MethodConstraints constraints)
          Returns a new copy of this proxy class (ConstrainableMailboxAdminProxy) with its client constraints set to the specified constraints.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

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).
Method Detail

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.