com.exadel.flamingo.javafx.seam.hessian.client
Class FlamingoHessianProxy

java.lang.Object
  extended by com.exadel.flamingo.javafx.seam.hessian.client.FlamingoHessianProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class FlamingoHessianProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Provides read/write operations for Seam conversationId as header to hessian's call/reply. It writes conversationId to header during request to server, and read conversationId to ConversationStore from server's response.

Author:
apleskatsevich

Method Summary
 java.net.URL getURL()
          Returns the proxy's URL.
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Handles the object invocation.
protected  java.lang.String mangleName(java.lang.reflect.Method method)
           
protected  java.net.URLConnection sendRequest(java.lang.String methodName, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getURL

public java.net.URL getURL()
Returns the proxy's URL.


invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Handles the object invocation.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - the proxy object to invoke
method - the method to call
args - the arguments to the proxy object
Throws:
java.lang.Throwable

mangleName

protected java.lang.String mangleName(java.lang.reflect.Method method)

sendRequest

protected java.net.URLConnection sendRequest(java.lang.String methodName,
                                             java.lang.Object[] args)
                                      throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008 Exadel, Inc.. All Rights Reserved.