public class JrmpServerContext extends Object implements ServerContext.Spi
ServerContext.getServerContext()
.Constructor and Description |
---|
JrmpServerContext() |
Modifier and Type | Method and Description |
---|---|
Collection |
getServerContext()
Returns a server context collection containing an element that
implements the
ClientHost interface whose
getClientHost method
returns the client host if the current thread is handling a JRMP
remote call, or null otherwise. |
public Collection getServerContext()
ClientHost
interface whose
getClientHost
method
returns the client host if the current thread is handling a JRMP
remote call, or null
otherwise. The client host string
is determined by calling RemoteServer.getClientHost()
; if
getClientHost
throws a ServerNotActiveException
, then no JRMP call is in progress and
null
is returned.getServerContext
in interface ServerContext.Spi
null
Copyright © 2016–2018. All rights reserved.