com.sun.jini.example.hello
Class ConfirmingInvocationHandler

java.lang.Object
  extended by net.jini.jeri.BasicInvocationHandler
      extended by com.sun.jini.example.hello.ConfirmingInvocationHandler
All Implemented Interfaces:
Serializable, InvocationHandler, net.jini.security.proxytrust.TrustEquivalence

public class ConfirmingInvocationHandler
extends net.jini.jeri.BasicInvocationHandler

Defines an invocation handler that confirms calls.

See Also:
Serialized Form

Constructor Summary
ConfirmingInvocationHandler(ConfirmingInvocationHandler other, net.jini.core.constraint.MethodConstraints clientConstraints)
          Create a confirming invocation handler from a basic handler and constraints.
ConfirmingInvocationHandler(net.jini.jeri.ObjectEndpoint oe, net.jini.core.constraint.MethodConstraints serverConstraints)
          Create a confirming invocation handler for the object endpoint and server constraints.
 
Method Summary
protected  void marshalArguments(Object proxy, Method method, Object[] args, ObjectOutputStream out, Collection context)
          Asks whether the call should be made, then writes a call identifier before the arguments.
 
Methods inherited from class net.jini.jeri.BasicInvocationHandler
checkTrustEquivalence, createMarshalInputStream, createMarshalOutputStream, equals, getClientConstraints, getObjectEndpoint, getServerConstraints, hashCode, invoke, marshalMethod, setClientConstraints, toString, unmarshalReturn, unmarshalThrow
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfirmingInvocationHandler

public ConfirmingInvocationHandler(ConfirmingInvocationHandler other,
                                   net.jini.core.constraint.MethodConstraints clientConstraints)
Create a confirming invocation handler from a basic handler and constraints.


ConfirmingInvocationHandler

public ConfirmingInvocationHandler(net.jini.jeri.ObjectEndpoint oe,
                                   net.jini.core.constraint.MethodConstraints serverConstraints)
Create a confirming invocation handler for the object endpoint and server constraints.

Method Detail

marshalArguments

protected void marshalArguments(Object proxy,
                                Method method,
                                Object[] args,
                                ObjectOutputStream out,
                                Collection context)
                         throws IOException
Asks whether the call should be made, then writes a call identifier before the arguments.

Overrides:
marshalArguments in class net.jini.jeri.BasicInvocationHandler
Throws:
IOException


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