public static class AccessILFactory.AccessDispatcher extends BasicInvocationDispatcher
BasicInvocationDispatcher
that only accepts
calls from the local host.Constructor and Description |
---|
AccessDispatcher(Collection methods,
ServerCapabilities caps,
ClassLoader loader)
Constructs an invocation dispatcher for the specified methods.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkAccess(Remote impl,
Method method,
InvocationConstraints constraints,
Collection context)
Checks that the client is calling from the local host.
|
checkClientPermission, checkPermissionClass, createMarshalInputStream, createMarshalOutputStream, dispatch, getClassLoader, invoke, marshalReturn, marshalThrow, unmarshalArguments, unmarshalMethod
public AccessDispatcher(Collection methods, ServerCapabilities caps, ClassLoader loader) throws ExportException
methods
- a collection of Method
instances
for the remote methodscaps
- the transport capabilities of the serverloader
- the class loader, or null
NullPointerException
- if methods
is
null
or if methods
contains a
null
elememtIllegalArgumentException
- if methods
contains an element that is not a Method
instanceExportException
protected void checkAccess(Remote impl, Method method, InvocationConstraints constraints, Collection context)
checkAccess
in class BasicInvocationDispatcher
impl
- the remote objectmethod
- the remote methodconstraints
- the enforced constraints for the specified
method, or null
context
- the server contextAccessControlException
- if the client is not
calling from the local hostCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.