org.jboss.remoting.stream
Interface StreamInvocationHandler

All Superinterfaces:
ServerInvocationHandler
All Known Implementing Classes:
StreamingServer.TestStreamInvocationHandler

public interface StreamInvocationHandler
extends ServerInvocationHandler

This interface is intended for those handlers that expect to receive calls from clients where a InputStream will be passed.

Author:
Tom Elrod

Method Summary
 java.lang.Object handleStream(java.io.InputStream stream, InvocationRequest param)
          Will receive an input stream, which is actually a proxy back to the original stream on the client's vm.
 
Methods inherited from interface org.jboss.remoting.ServerInvocationHandler
addListener, invoke, removeListener, setInvoker, setMBeanServer, toString
 

Method Detail

handleStream

java.lang.Object handleStream(java.io.InputStream stream,
                              InvocationRequest param)
                              throws java.lang.Throwable
Will receive an input stream, which is actually a proxy back to the original stream on the client's vm. This stream can be acted upon as though it was a local input stream. When finished reading from the stream, it MUST be closed, or will remain open on the client side.

Parameters:
stream - stream proxy to client's original stream
param - the payload associated with the invocation
Throws:
java.lang.Throwable


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.