com.sun.jini.jeri.internal.runtime
Class BasicExportTable.LC
java.lang.Object
com.sun.jini.jeri.internal.runtime.BasicExportTable.LC
- All Implemented Interfaces:
- ServerEndpoint.ListenContext
- Enclosing class:
- BasicExportTable
private class BasicExportTable.LC
- extends Object
- implements ServerEndpoint.ListenContext
Collects the ListenEndpoints associated with a ServerEndpoint
and gets the corresponding bindings using the listen pool.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
done
private volatile boolean done
bindings
private final List<Binding> bindings
BasicExportTable.LC
BasicExportTable.LC()
addListenEndpoint
public ServerEndpoint.ListenCookie addListenEndpoint(ServerEndpoint.ListenEndpoint listenEndpoint)
throws IOException
- Description copied from interface:
ServerEndpoint.ListenContext
- Adds
listenEndpoint
to this
ListenContext
's collection of
ListenEndpoint
instances for the
ServerEndpoint
it was passed to, starts a
listen operation on listenEndpoint
if
necessary, and returns the ListenCookie
for an
active listen operation on listenEndpoint
.
The returned ListenCookie
must have been
obtained from a ListenHandle
returned from
some invocation of ListenEndpoint.listen
on a ListenEndpoint
equivalent to
listenEndpoint
by Object.equals
.
This method may start a new listen operation on
listenEndpoint
by invoking its
listen
method and returning the
ListenCookie
from the resulting
ListenHandle
, or it may return a
ListenCookie
for a listen operation previously
started (but still active) on an equivalent
ListenEndpoint
. If this method does invoke
listen
on listenEndpoint
and it
throws an exception, then this method throws that
exception.
The implementation of this method may invoke checkPermissions
on listenEndpoint
to verify
that a party that it is operating on behalf of has all of
the security permissions necessary to listen for requests
on listenEndpoint
.
- Specified by:
addListenEndpoint
in interface ServerEndpoint.ListenContext
- Parameters:
listenEndpoint
- the ListenEndpoint
to
add to this ListenContext
and to return a
ListenCookie
for
- Returns:
- a
ListenCookie
that represents an
active listen operation on listenEndpoint
- Throws:
IOException
- if an invocation of listen
on listenEndpoint
throws an
IOException
getFinalBindings
private List getFinalBindings()
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.