net.jini.jrmp
Class JrmpServerContext

java.lang.Object
  extended by net.jini.jrmp.JrmpServerContext
All Implemented Interfaces:
ServerContext.Spi

public class JrmpServerContext
extends Object
implements ServerContext.Spi

Server context provider for remote objects exported via JRMP. This class is intended to be specified in a resource to configure the operation of ServerContext.getServerContext().

Since:
2.0
Author:
Sun Microsystems, Inc.

Constructor Summary
JrmpServerContext()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JrmpServerContext

public JrmpServerContext()
Method Detail

getServerContext

public 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. 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.

Specified by:
getServerContext in interface ServerContext.Spi
Returns:
server context collection or null


Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.