CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.remoting
Class RemoteApiFactory

java.lang.Object
  extended by com.caucho.hessian.client.HessianProxyFactory
      extended by com.intland.codebeamer.remoting.RemoteApiFactory
All Implemented Interfaces:
com.caucho.services.client.ServiceProxyFactory, javax.naming.spi.ObjectFactory

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

A special HessionProxyFactory for stateful RemoteService connections


Field Summary
protected static RemoteApiFactory Instance
          The singleton instance
 
Fields inherited from class com.caucho.hessian.client.HessianProxyFactory
log
 
Constructor Summary
protected RemoteApiFactory()
          Create a new RemoteServiceFactory
 
Method Summary
 RemoteApi connect(java.lang.String url)
          Create a new RemoteService connection to the specified server
 java.lang.Object create(java.lang.Class api, java.lang.String url)
          Create a new RemoteApi of the specified class connected to the remote CodeBeamer server
static RemoteApiFactory getInstance()
           
 
Methods inherited from class com.caucho.hessian.client.HessianProxyFactory
create, create, encode, getHessianInput, getHessianOutput, getObjectInstance, getReadTimeout, getRemoteResolver, getSerializerFactory, isChunkedPost, isDebug, isOverloadEnabled, openConnection, 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
 

Field Detail

Instance

protected static RemoteApiFactory Instance
The singleton instance

Constructor Detail

RemoteApiFactory

protected RemoteApiFactory()
Create a new RemoteServiceFactory

Method Detail

getInstance

public static RemoteApiFactory getInstance()

create

public java.lang.Object create(java.lang.Class api,
                               java.lang.String url)
                        throws java.net.MalformedURLException
Create a new RemoteApi of the specified class connected to the remote CodeBeamer server

Specified by:
create in interface com.caucho.services.client.ServiceProxyFactory
Overrides:
create in class com.caucho.hessian.client.HessianProxyFactory
Parameters:
api - is the Interface of the RemoteApi
url - is the URL of the remote CodeBeamer server
Throws:
java.net.MalformedURLException

connect

public RemoteApi connect(java.lang.String url)
                  throws java.net.MalformedURLException
Create a new RemoteService connection to the specified server

Parameters:
url - is the URL of the target server
Returns:
a RemoteService interface connected to the specified server
Throws:
java.net.MalformedURLException

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.