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.
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 |
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 methodscaps
- the transport capabilities of the serverloader
- 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
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 objectmethod
- the remote methodconstraints
- 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.