An RMIServer object that is exported through JRMP and that
creates client connections as RMI objects exported through JRMP.
User code does not usually reference this class directly.
RMIServerImpl
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final ObjectInputFilter | |
| private final RMIClientSocketFactory | |
| private final Map | |
| private final ObjectInputFilter | |
| private final int | |
| private final RMIServerSocketFactory |
| Access | Constructor and Description |
|---|---|
| public | RMIJRMPServerImpl(int
the port on which this object and the port, RMIClientSocketFactory RMIConnectionImpl objects it creates will be exported. Can be
zero, to indicate any available port.the client socket factory for the created RMI
objects. Can be null. csf, RMIServerSocketFactory the server socket factory for the created RMI
objects. Can be null. ssf, Map<String, ?> the environment map. Can be null. env)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | closeClient(RMIConnection client)
Implements abstract javax. Closes a client connection made by |
| protected void | closeServer()
Implements abstract javax. Called by |
| protected void | export()
Implements abstract javax. Exports this RMI object. |
| private void | |
| protected String | getProtocol()
Implements abstract javax. Returns the protocol string for this object. |
| protected RMIConnection | Returns: the newly-createdRMIConnection.the ID of the new connection. Every
connection opened by this connector server will have a
different id. The behavior is unspecified if this parameter is
null. connectionId, Subject the authenticated subject. Can be null. subject)Implements abstract javax. Creates a new client connection as an RMI object exported through JRMP. |
| pack-priv ObjectInputFilter. | Returns: ObjectInputFilter.Status.ALLOWED if the class is allowed,
otherwise ObjectInputFilter.Status.REJECTEDCheck that a type in the remote invocation of |
| public Remote | Returns: a serializable stub.Implements abstract javax. Returns a serializable stub for this |
| private void |
| allowedTypes | back to summary |
|---|---|
| private final Set<String> allowedTypes | |
| cFilter | back to summary |
|---|---|
| private final ObjectInputFilter cFilter | |
| csf | back to summary |
|---|---|
| private final RMIClientSocketFactory csf | |
| env | back to summary |
|---|---|
| private final Map<String, ?> env | |
| jmxRmiFilter | back to summary |
|---|---|
| private final ObjectInputFilter jmxRmiFilter | |
| port | back to summary |
|---|---|
| private final int port | |
| ssf | back to summary |
|---|---|
| private final RMIServerSocketFactory ssf | |
| RMIJRMPServerImpl | back to summary |
|---|---|
| public RMIJRMPServerImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, Map<String, ?> env) throws IOException Creates a new
| |
| closeClient | back to summary |
|---|---|
| protected void closeClient(RMIConnection client) throws IOException Implements abstract javax. Doc from javax. Closes a client connection made by
| |
| closeServer | back to summary |
|---|---|
| protected void closeServer() throws IOException Implements abstract javax. Called by
| |
| export | back to summary |
|---|---|
| protected void export() throws IOException Implements abstract javax. Doc from javax. Exports this RMI object.
| |
| export | back to summary |
|---|---|
| private void export(Remote obj, ObjectInputFilter typeFilter) throws RemoteException | |
| getProtocol | back to summary |
|---|---|
| protected String getProtocol() Implements abstract javax. Doc from javax. Returns the protocol string for this object. The string is
| |
| makeClient | back to summary |
|---|---|
| protected RMIConnection makeClient(String connectionId, Subject subject) throws IOException Implements abstract javax. Creates a new client connection as an RMI object exported
through JRMP. The port and socket factories for the new
| |
| newClientCheckInput | back to summary |
|---|---|
| pack-priv ObjectInputFilter. Check that a type in the remote invocation of
| |
| toStub | back to summary |
|---|---|
| public Remote toStub() throws IOException Implements abstract javax. Returns a serializable stub for this
| |
| unexport | back to summary |
|---|---|
| private void unexport(Remote obj, boolean force) throws NoSuchObjectException | |