com.googlecode.xremoting.core.invoked
Class ProxyInvokingHelper

java.lang.Object
  extended by com.googlecode.xremoting.core.invoked.ProxyInvokingHelper

public class ProxyInvokingHelper
extends Object

Helper class for invoking on server side.

Author:
Roman Puchkovskiy

Constructor Summary
ProxyInvokingHelper()
           
 
Method Summary
protected  void afterInvocation(Object target, Invocation invocation, Invoker invoker, InvocationRestriction restriction)
           
protected  void beforeInvocation(Object target, Invocation invocation, Invoker invoker, InvocationRestriction restriction)
           
 void invoke(Object target, InputStream is, OutputStream os, Serializer serializer, Invoker invoker, InvocationRestriction restriction)
           
protected  Object invoke(Object target, Invocation invocation, Invoker invoker, InvocationRestriction restriction)
           
protected  void send(OutputStream os, Object object, Serializer serializer)
           
protected  void sendResult(OutputStream os, Object result, Serializer serializer)
           
protected  void sendThrown(OutputStream os, Throwable e, Serializer serializer)
           
protected  void sendThrownThrowingOnSerializationError(OutputStream os, Throwable t, Serializer serializer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyInvokingHelper

public ProxyInvokingHelper()
Method Detail

invoke

public void invoke(Object target,
                   InputStream is,
                   OutputStream os,
                   Serializer serializer,
                   Invoker invoker,
                   InvocationRestriction restriction)
            throws IOException
Throws:
IOException

beforeInvocation

protected void beforeInvocation(Object target,
                                Invocation invocation,
                                Invoker invoker,
                                InvocationRestriction restriction)

invoke

protected Object invoke(Object target,
                        Invocation invocation,
                        Invoker invoker,
                        InvocationRestriction restriction)
                 throws InvokedSideInvocationException,
                        Throwable
Throws:
InvokedSideInvocationException
Throwable

afterInvocation

protected void afterInvocation(Object target,
                               Invocation invocation,
                               Invoker invoker,
                               InvocationRestriction restriction)

sendResult

protected void sendResult(OutputStream os,
                          Object result,
                          Serializer serializer)
                   throws SerializationException,
                          IOException
Throws:
SerializationException
IOException

sendThrown

protected void sendThrown(OutputStream os,
                          Throwable e,
                          Serializer serializer)
                   throws SerializationException,
                          IOException
Throws:
SerializationException
IOException

send

protected void send(OutputStream os,
                    Object object,
                    Serializer serializer)
             throws SerializationException,
                    IOException
Throws:
SerializationException
IOException

sendThrownThrowingOnSerializationError

protected void sendThrownThrowingOnSerializationError(OutputStream os,
                                                      Throwable t,
                                                      Serializer serializer)
                                               throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.