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, toStubclientClosed, close, getDefaultClassLoader, getMBeanServer, getVersion, newClient, setDefaultClassLoader, setMBeanServerprotected RMIConnection makeClient(String connectionId, Subject subject) throws IOException
makeClient in class RMIJRMPServerImplIOExceptionpublic Subject getSubjectConnectionId(String connectionId)
getSubjectConnectionId in interface UsernameAccessorpublic void handleNotification(Notification notification, Object handback)
handleNotification in interface NotificationListenerpublic boolean isNotificationEnabled(Notification notification)
isNotificationEnabled in interface NotificationFilterCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.