public class AtomicInvocationHandler extends BasicInvocationHandler
Constructor and Description |
---|
AtomicInvocationHandler(AtomicInvocationHandler other,
MethodConstraints clientConstraints) |
AtomicInvocationHandler(AtomicSerial.GetArg arg) |
AtomicInvocationHandler(ObjectEndpoint oe,
MethodConstraints serverConstraints) |
Modifier and Type | Method and Description |
---|---|
protected ObjectInputStream |
createMarshalInputStream(Object proxy,
Method method,
OutboundRequest request,
boolean integrity,
Collection context)
Returns a new
ObjectInputStream instance to use to read
objects from the response input stream obtained by invoking the getResponseInputStream method
on the given request . |
protected ObjectOutputStream |
createMarshalOutputStream(Object proxy,
Method method,
OutboundRequest request,
Collection context)
Returns a new
ObjectOutputStream instance to use to write
objects to the request output stream obtained by invoking the getRequestOutputStream method
on the given request . |
checkTrustEquivalence, equals, getClientConstraints, getObjectEndpoint, getServerConstraints, hashCode, invoke, marshalArguments, marshalMethod, setClientConstraints, toString, unmarshalReturn, unmarshalThrow
public AtomicInvocationHandler(AtomicInvocationHandler other, MethodConstraints clientConstraints)
public AtomicInvocationHandler(AtomicSerial.GetArg arg) throws IOException
IOException
public AtomicInvocationHandler(ObjectEndpoint oe, MethodConstraints serverConstraints)
protected ObjectOutputStream createMarshalOutputStream(Object proxy, Method method, OutboundRequest request, Collection context) throws IOException
ObjectOutputStream
instance to use to write
objects to the request output stream obtained by invoking the getRequestOutputStream
method
on the given request
.
AtomicInvocationHandler
implements this method
to return a new MarshalOutputStream
instance
constructed with the output stream obtained from
request
as specified above and an unmodifiable
view of the supplied context
collection.
A subclass can override this method to control how the marshal input stream is created or implemented.
createMarshalOutputStream
in class BasicInvocationHandler
proxy
- the proxy instancemethod
- the remote method invokedrequest
- the outbound requestcontext
- the client contextObjectOutputStream
instance for marshalling
a call requestIOException
- if an I/O exception occursNullPointerException
- if any argument is null
protected ObjectInputStream createMarshalInputStream(Object proxy, Method method, OutboundRequest request, boolean integrity, Collection context) throws IOException
ObjectInputStream
instance to use to read
objects from the response input stream obtained by invoking the getResponseInputStream
method
on the given request
.
AtomicInvocationHandler
implements this method
to return a new MarshalInputStream
instance constructed
with the input stream obtained from request
as
specified above for the input stream in
, the class
loader of proxy
's class for
defaultLoader
and verifierLoader
,
this method's integrity
argument for
verifyCodebaseIntegrity
, and an unmodifiable view
of context
for the context
collection. The useCodebaseAnnotations
method is invoked on the created stream
before it is returned.
An exception is thrown if proxy
is not an instance
of a dynamic proxy class containing this invocation handler.
A subclass can override this method to control how the marshal input stream is created or implemented.
createMarshalInputStream
in class BasicInvocationHandler
proxy
- the proxy instancemethod
- the remote method invokedrequest
- the outbound requestintegrity
- whether or not to verify codebase integritycontext
- the client contextObjectInputStream
instance for unmarshalling
a call responseIOException
- if an I/O exception occursNullPointerException
- if any argument is null
Copyright © 2016–2018. All rights reserved.