blob: 947715d56206362d593274486811deef00fdb78a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0) on Sun Aug 28 20:42:50 EST 2016 -->
<title>Registration.ConstrainableRegistration (Apache River v3.0.0 API Documentation (internals))</title>
<meta name="date" content="2016-08-28">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Registration.ConstrainableRegistration (Apache River v3.0.0 API Documentation (internals))";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Registration.ConstrainableRegistration.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/river/mercury/RemoteEventData.html" title="class in org.apache.river.mercury"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/river/mercury/Registration.ConstrainableRegistration.html" target="_top">Frames</a></li>
<li><a href="Registration.ConstrainableRegistration.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.river.mercury.Registration">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.river.mercury</div>
<h2 title="Class Registration.ConstrainableRegistration" class="title">Class Registration.ConstrainableRegistration</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury">org.apache.river.mercury.Registration</a></li>
<li>
<ul class="inheritance">
<li>org.apache.river.mercury.Registration.ConstrainableRegistration</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../net/jini/core/constraint/RemoteMethodControl.html" title="interface in net.jini.core.constraint">RemoteMethodControl</a>, <a href="../../../../net/jini/event/MailboxPullRegistration.html" title="interface in net.jini.event">MailboxPullRegistration</a>, <a href="../../../../net/jini/event/MailboxRegistration.html" title="interface in net.jini.event">MailboxRegistration</a>, <a href="../../../../net/jini/id/ReferentUuid.html" title="interface in net.jini.id">ReferentUuid</a></dd>
</dl>
<dl>
<dt>Enclosing class:</dt>
<dd><a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury">Registration</a></dd>
</dl>
<hr>
<br>
<pre>static final class <span class="typeNameLabel">Registration.ConstrainableRegistration</span>
extends <a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury">Registration</a>
implements <a href="../../../../net/jini/core/constraint/RemoteMethodControl.html" title="interface in net.jini.core.constraint">RemoteMethodControl</a></pre>
<div class="block">A subclass of Registration that implements RemoteMethodControl.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.river.mercury.Registration">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.river.mercury.<a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury">Registration</a></h3>
<code><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html" title="class in org.apache.river.mercury">Registration.ConstrainableRegistration</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#methodConstraints">methodConstraints</a></span></code>
<div class="block">The client constraints placed on this proxy or <code>null</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#methodMap1">methodMap1</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#serialVersionUID">serialVersionUID</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.river.mercury.Registration">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.river.mercury.<a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury">Registration</a></h3>
<code><a href="../../../../org/apache/river/mercury/Registration.html#lease">lease</a>, <a href="../../../../org/apache/river/mercury/Registration.html#listener">listener</a>, <a href="../../../../org/apache/river/mercury/Registration.html#mailbox">mailbox</a>, <a href="../../../../org/apache/river/mercury/Registration.html#registrationID">registrationID</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#ConstrainableRegistration-net.jini.id.Uuid-org.apache.river.mercury.MailboxBackEnd-net.jini.core.lease.Lease-net.jini.core.constraint.MethodConstraints-">ConstrainableRegistration</a></span>(<a href="../../../../net/jini/id/Uuid.html" title="class in net.jini.id">Uuid</a>&nbsp;id,
<a href="../../../../org/apache/river/mercury/MailboxBackEnd.html" title="interface in org.apache.river.mercury">MailboxBackEnd</a>&nbsp;server,
<a href="../../../../net/jini/core/lease/Lease.html" title="interface in net.jini.core.lease">Lease</a>&nbsp;lease,
<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a>&nbsp;methodConstraints)</code>
<div class="block">Creates an instance of this class.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>private static <a href="../../../../org/apache/river/mercury/MailboxBackEnd.html" title="interface in org.apache.river.mercury">MailboxBackEnd</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#constrainServer-org.apache.river.mercury.MailboxBackEnd-net.jini.core.constraint.MethodConstraints-">constrainServer</a></span>(<a href="../../../../org/apache/river/mercury/MailboxBackEnd.html" title="interface in org.apache.river.mercury">MailboxBackEnd</a>&nbsp;server,
<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a>&nbsp;methodConstraints)</code>
<div class="block">Returns a copy of the server proxy with the specified client
constraints and methods mapping.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#getConstraints--">getConstraints</a></span>()</code>
<div class="block">Returns the client constraints placed on this proxy.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>private <a href="../../../../net/jini/security/proxytrust/ProxyTrustIterator.html" title="interface in net.jini.security.proxytrust">ProxyTrustIterator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#getProxyTrustIterator--">getProxyTrustIterator</a></span>()</code>
<div class="block">Returns a proxy trust iterator that is used in
<code>ProxyTrustVerifier</code> to retrieve this object's
trust verifier.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../net/jini/event/RemoteEventIterator.html" title="interface in net.jini.event">RemoteEventIterator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#getRemoteEvents-long-long-">getRemoteEvents</a></span>(long&nbsp;maxEvents,
long&nbsp;timeout)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#readObject-java.io.ObjectInputStream-">readObject</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/ObjectInputStream.html?is-external=true" title="class or interface in java.io">ObjectInputStream</a>&nbsp;s)</code>
<div class="block">Verifies that the registrationID, lease and mailbox fields are
not null, that mailbox implements RemoteMethodControl, and that the
mailbox proxy has the appropriate method constraints.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../net/jini/core/constraint/RemoteMethodControl.html" title="interface in net.jini.core.constraint">RemoteMethodControl</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/river/mercury/Registration.ConstrainableRegistration.html#setConstraints-net.jini.core.constraint.MethodConstraints-">setConstraints</a></span>(<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a>&nbsp;constraints)</code>
<div class="block">Returns a new copy of this proxy with the client constraints set to the
specified constraints.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.river.mercury.Registration">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.river.mercury.<a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury">Registration</a></h3>
<code><a href="../../../../org/apache/river/mercury/Registration.html#addUnknownEvents-java.util.Collection-">addUnknownEvents</a>, <a href="../../../../org/apache/river/mercury/Registration.html#create-net.jini.id.Uuid-org.apache.river.mercury.MailboxBackEnd-net.jini.core.lease.Lease-">create</a>, <a href="../../../../org/apache/river/mercury/Registration.html#disableDelivery--">disableDelivery</a>, <a href="../../../../org/apache/river/mercury/Registration.html#enableDelivery-net.jini.core.event.RemoteEventListener-">enableDelivery</a>, <a href="../../../../org/apache/river/mercury/Registration.html#equals-java.lang.Object-">equals</a>, <a href="../../../../org/apache/river/mercury/Registration.html#getLease--">getLease</a>, <a href="../../../../org/apache/river/mercury/Registration.html#getListener--">getListener</a>, <a href="../../../../org/apache/river/mercury/Registration.html#getReferentUuid--">getReferentUuid</a>, <a href="../../../../org/apache/river/mercury/Registration.html#getRemoteEvents--">getRemoteEvents</a>, <a href="../../../../org/apache/river/mercury/Registration.html#hashCode--">hashCode</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="serialVersionUID">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>serialVersionUID</h4>
<pre>private static final&nbsp;long serialVersionUID</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.river.mercury.Registration.ConstrainableRegistration.serialVersionUID">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="methodMap1">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>methodMap1</h4>
<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>[] methodMap1</pre>
</li>
</ul>
<a name="methodConstraints">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>methodConstraints</h4>
<pre>private&nbsp;<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a> methodConstraints</pre>
<div class="block">The client constraints placed on this proxy or <code>null</code>.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ConstrainableRegistration-net.jini.id.Uuid-org.apache.river.mercury.MailboxBackEnd-net.jini.core.lease.Lease-net.jini.core.constraint.MethodConstraints-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ConstrainableRegistration</h4>
<pre>private&nbsp;ConstrainableRegistration(<a href="../../../../net/jini/id/Uuid.html" title="class in net.jini.id">Uuid</a>&nbsp;id,
<a href="../../../../org/apache/river/mercury/MailboxBackEnd.html" title="interface in org.apache.river.mercury">MailboxBackEnd</a>&nbsp;server,
<a href="../../../../net/jini/core/lease/Lease.html" title="interface in net.jini.core.lease">Lease</a>&nbsp;lease,
<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a>&nbsp;methodConstraints)</pre>
<div class="block">Creates an instance of this class.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getRemoteEvents-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRemoteEvents</h4>
<pre>public&nbsp;<a href="../../../../net/jini/event/RemoteEventIterator.html" title="interface in net.jini.event">RemoteEventIterator</a>&nbsp;getRemoteEvents(long&nbsp;maxEvents,
long&nbsp;timeout)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/rmi/RemoteException.html?is-external=true" title="class or interface in java.rmi">RemoteException</a></code></dd>
</dl>
</li>
</ul>
<a name="constrainServer-org.apache.river.mercury.MailboxBackEnd-net.jini.core.constraint.MethodConstraints-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>constrainServer</h4>
<pre>private static&nbsp;<a href="../../../../org/apache/river/mercury/MailboxBackEnd.html" title="interface in org.apache.river.mercury">MailboxBackEnd</a>&nbsp;constrainServer(<a href="../../../../org/apache/river/mercury/MailboxBackEnd.html" title="interface in org.apache.river.mercury">MailboxBackEnd</a>&nbsp;server,
<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a>&nbsp;methodConstraints)</pre>
<div class="block">Returns a copy of the server proxy with the specified client
constraints and methods mapping.</div>
</li>
</ul>
<a name="setConstraints-net.jini.core.constraint.MethodConstraints-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setConstraints</h4>
<pre>public&nbsp;<a href="../../../../net/jini/core/constraint/RemoteMethodControl.html" title="interface in net.jini.core.constraint">RemoteMethodControl</a>&nbsp;setConstraints(<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a>&nbsp;constraints)</pre>
<div class="block">Returns a new copy of this proxy with the client constraints set to the
specified constraints. These constraints completely replace (in the
copy) any client constraints previously placed on this proxy; calling
the <a href="../../../../net/jini/core/constraint/RemoteMethodControl.html#getConstraints--"><code>getConstraints</code></a> method of the copy returns
the identical constraints instance. The original proxy is not modified.
A <code>null</code> value is interpreted as mapping all methods to
empty constraints (one that has no requirements and no preferences).
For any given remote call, the specific client requirements and
preferences to be satisfied are given by the return value of invoking
the <a href="../../../../net/jini/core/constraint/MethodConstraints.html#getConstraints-java.lang.reflect.Method-"><code>getConstraints</code></a> method of
the specified <a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint"><code>MethodConstraints</code></a> instance with a
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect"><code>Method</code></a> object representing the remote method.
<p>
Client constraints placed on a proxy are included in the serialized
state of the proxy. This allows third-party services to be transparent
to the client's needs. For example, if remote object <code>s1</code>
obtains a proxy for remote object <code>s2</code>, and passes that
proxy to remote object <code>s3</code>, expecting <code>s3</code> to
invoke a remote method on <code>s2</code>, then <code>s1</code> can
control that call by placing its constraints directly on the proxy
before passing it to <code>s3</code>. If <code>s3</code> does not
wish to be transparent in this way, then it should explicitly replace
the client constraints on received proxies with whatever constraints
are appropriate to implement its own policy.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../net/jini/core/constraint/RemoteMethodControl.html#setConstraints-net.jini.core.constraint.MethodConstraints-">setConstraints</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../net/jini/core/constraint/RemoteMethodControl.html" title="interface in net.jini.core.constraint">RemoteMethodControl</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>constraints</code> - client constraints, or <code>null</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new copy of this proxy with the client constraints set to the
specified constraints</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../net/jini/core/constraint/RemoteMethodControl.html#getConstraints--"><code>RemoteMethodControl.getConstraints()</code></a></dd>
</dl>
</li>
</ul>
<a name="getConstraints--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConstraints</h4>
<pre>public&nbsp;<a href="../../../../net/jini/core/constraint/MethodConstraints.html" title="interface in net.jini.core.constraint">MethodConstraints</a>&nbsp;getConstraints()</pre>
<div class="block">Returns the client constraints placed on this proxy. The return
value can be <code>null</code>, which is interpreted as mapping all
methods to empty constraints (one that has no requirements and no
preferences).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../net/jini/core/constraint/RemoteMethodControl.html#getConstraints--">getConstraints</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../net/jini/core/constraint/RemoteMethodControl.html" title="interface in net.jini.core.constraint">RemoteMethodControl</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the client constraints, or <code>null</code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../net/jini/core/constraint/RemoteMethodControl.html#setConstraints-net.jini.core.constraint.MethodConstraints-"><code>RemoteMethodControl.setConstraints(net.jini.core.constraint.MethodConstraints)</code></a></dd>
</dl>
</li>
</ul>
<a name="getProxyTrustIterator--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProxyTrustIterator</h4>
<pre>private&nbsp;<a href="../../../../net/jini/security/proxytrust/ProxyTrustIterator.html" title="interface in net.jini.security.proxytrust">ProxyTrustIterator</a>&nbsp;getProxyTrustIterator()</pre>
<div class="block">Returns a proxy trust iterator that is used in
<code>ProxyTrustVerifier</code> to retrieve this object's
trust verifier.</div>
</li>
</ul>
<a name="readObject-java.io.ObjectInputStream-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>readObject</h4>
<pre>private&nbsp;void&nbsp;readObject(<a href="http://docs.oracle.com/javase/6/docs/api/java/io/ObjectInputStream.html?is-external=true" title="class or interface in java.io">ObjectInputStream</a>&nbsp;s)
throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></pre>
<div class="block">Verifies that the registrationID, lease and mailbox fields are
not null, that mailbox implements RemoteMethodControl, and that the
mailbox proxy has the appropriate method constraints.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/InvalidObjectException.html?is-external=true" title="class or interface in java.io">InvalidObjectException</a></code> - if registrationID, lease or mailbox
is null, if mailbox does not implement RemoteMethodControl,
or if server has the wrong constraints</dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Registration.ConstrainableRegistration.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/river/mercury/Registration.html" title="class in org.apache.river.mercury"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/river/mercury/RemoteEventData.html" title="class in org.apache.river.mercury"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/river/mercury/Registration.ConstrainableRegistration.html" target="_top">Frames</a></li>
<li><a href="Registration.ConstrainableRegistration.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.river.mercury.Registration">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright 2007-2013, multiple authors.<br>Licensed under the <a href=http://www.apache.org/licenses/LICENSE-2.0 target=child >Apache License, Version 2.0</a>, see the <a href=../../../../doc-files/NOTICE target=child >NOTICE</a> file for attributions.</small></p>
</body>
</html>