com.sun.jini.phoenix
Class AccessILFactory.AccessDispatcher

java.lang.Object
  extended by net.jini.jeri.BasicInvocationDispatcher
      extended by com.sun.jini.phoenix.AccessILFactory.AccessDispatcher
All Implemented Interfaces:
InvocationDispatcher
Enclosing class:
AccessILFactory

public static class AccessILFactory.AccessDispatcher
extends BasicInvocationDispatcher

A subclass of BasicInvocationDispatcher that only accepts calls from the local host.


Constructor Summary
AccessILFactory.AccessDispatcher(Collection methods, ServerCapabilities caps, ClassLoader loader)
          Constructs an invocation dispatcher for the specified methods.
 
Method Summary
protected  void checkAccess(Remote impl, Method method, InvocationConstraints constraints, Collection context)
          Checks that the client is calling from the local host.
 
Methods inherited from class net.jini.jeri.BasicInvocationDispatcher
checkClientPermission, checkPermissionClass, createMarshalInputStream, createMarshalOutputStream, dispatch, getClassLoader, invoke, marshalReturn, marshalThrow, unmarshalArguments, unmarshalMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessILFactory.AccessDispatcher

public AccessILFactory.AccessDispatcher(Collection methods,
                                        ServerCapabilities caps,
                                        ClassLoader loader)
                                 throws ExportException
Constructs an invocation dispatcher for the specified methods.

Parameters:
methods - a collection of Method instances for the remote methods
caps - the transport capabilities of the server
loader - the class loader, or null
Throws:
NullPointerException - if methods is null or if methods contains a null elememt
IllegalArgumentException - if methods contains an element that is not a Method instance
ExportException
Method Detail

checkAccess

protected void checkAccess(Remote impl,
                           Method method,
                           InvocationConstraints constraints,
                           Collection context)
Checks that the client is calling from the local host.

Overrides:
checkAccess in class BasicInvocationDispatcher
Parameters:
impl - the remote object
method - the remote method
constraints - the enforced constraints for the specified method, or null
context - the server context
Throws:
AccessControlException - if the client is not calling from the local host


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