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

java.lang.Object
  extended by com.caucho.hessian.client.HessianProxyFactory
      extended by com.exadel.flamingo.javafx.seam.hessian.client.FlamingoHessianProxyFactory
All Implemented Interfaces:
com.caucho.services.client.ServiceProxyFactory, javax.naming.spi.ObjectFactory

public class FlamingoHessianProxyFactory
extends com.caucho.hessian.client.HessianProxyFactory

Extends HessianProxyfactory to create FlamingoHessianProxy.

Author:
apleskatsevich

Field Summary
 
Fields inherited from class com.caucho.hessian.client.HessianProxyFactory
log
 
Constructor Summary
FlamingoHessianProxyFactory()
           
 
Method Summary
 java.lang.Object create(java.lang.Class api, java.lang.String urlName, java.lang.ClassLoader loader)
          Creates a new proxy with the specified URL.
 com.caucho.hessian.io.AbstractHessianOutput getHessianOutput(java.io.OutputStream os)
          Dirty fix.
protected  java.net.URLConnection openConnection(java.net.URL url)
          Creates the URL connection.
 
Methods inherited from class com.caucho.hessian.client.HessianProxyFactory
create, create, encode, getHessianInput, getObjectInstance, getReadTimeout, getRemoteResolver, getSerializerFactory, isChunkedPost, isDebug, isOverloadEnabled, setChunkedPost, setConnectionFactoryName, setDebug, setHessian2Reply, setHessian2Request, setOverloadEnabled, setPassword, setReadTimeout, setSerializerFactory, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlamingoHessianProxyFactory

public FlamingoHessianProxyFactory()
Method Detail

openConnection

protected java.net.URLConnection openConnection(java.net.URL url)
                                         throws java.io.IOException
Creates the URL connection.

Overrides:
openConnection in class com.caucho.hessian.client.HessianProxyFactory
Throws:
java.io.IOException

getHessianOutput

public com.caucho.hessian.io.AbstractHessianOutput getHessianOutput(java.io.OutputStream os)
Dirty fix.

Overrides:
getHessianOutput in class com.caucho.hessian.client.HessianProxyFactory
Parameters:
os - OutputStream
Returns:
FlamingoHessian2Output

create

public java.lang.Object create(java.lang.Class api,
                               java.lang.String urlName,
                               java.lang.ClassLoader loader)
                        throws java.net.MalformedURLException
Creates a new proxy with the specified URL. The returned object is a proxy with the interface specified by api.
 String url = "http://localhost:8080/ejb/hello");
 HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
 

Overrides:
create in class com.caucho.hessian.client.HessianProxyFactory
Parameters:
api - the interface the proxy class needs to implement
urlName - the URL where the client object is located.
Returns:
a proxy to the object with the specified interface.
Throws:
java.net.MalformedURLException


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