public class UsernameCachingRMIJRMPServer extends RMIJRMPServerImpl implements NotificationListener, NotificationFilter, UsernameAccessor
UsernameAccessor.getSubjectConnectionId(String)
.
Caller is responsible for installing this object as a NotificationListener
of the
JMXConnectorServer
so the cache entries are removed as the clients disconnect.Modifier and Type | Method and Description |
---|---|
Subject |
getSubjectConnectionId(String connectionId) |
void |
handleNotification(Notification notification,
Object handback) |
boolean |
isNotificationEnabled(Notification notification) |
protected RMIConnection |
makeClient(String connectionId,
Subject subject) |
closeClient, closeServer, export, getProtocol, toStub
clientClosed, close, getDefaultClassLoader, getMBeanServer, getVersion, newClient, setDefaultClassLoader, setMBeanServer
protected RMIConnection makeClient(String connectionId, Subject subject) throws IOException
makeClient
in class RMIJRMPServerImpl
IOException
public Subject getSubjectConnectionId(String connectionId)
getSubjectConnectionId
in interface UsernameAccessor
public void handleNotification(Notification notification, Object handback)
handleNotification
in interface NotificationListener
public boolean isNotificationEnabled(Notification notification)
isNotificationEnabled
in interface NotificationFilter
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.