Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jini.phoenix
Class AccessILFactory.AccessDispatcher

    java.lang.Object
      net.jini.jeri.BasicInvocationDispatcher
          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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved