orca.shirako.proxies.soap
Class SoapProxy

java.lang.Object
  extended by orca.shirako.proxies.Proxy
      extended by orca.shirako.proxies.soap.SoapProxy
All Implemented Interfaces:
IActorIdentity, IProxy, ISerialize
Direct Known Subclasses:
SoapAuthorityProxy, SoapBrokerProxy, SoapReturn

public abstract class SoapProxy
extends Proxy

o Base proxy class for all SOAP proxies.


Field Summary
protected  AuthToken identity
          Identity of the actor
protected  LoggingTool logger
          The logger
static java.lang.String PropertyServiceEndPoint
          Serialization property: the endpoint of the actor service
static java.lang.String PropetyClientConfig
           
protected  java.lang.String serviceEndpoint
          The endpoint of the actor service
 
Fields inherited from class orca.shirako.proxies.Proxy
callback, PropertyProxyActorName, PropertyProxyCallback, PropertyProxyClass, PropertyProxyType, proxyType
 
Fields inherited from interface orca.shirako.api.IProxy
ProxyTypeLocal, ProxyTypeSoap
 
Constructor Summary
protected SoapProxy(java.lang.String serviceEndpoint, AuthToken identity, LoggingTool logger)
          Create a new SOAP proxy
 
Method Summary
protected  org.apache.axis.EngineConfiguration getConfiguration()
          Returns the engine configuration to be used by a proxy.
protected  IConcreteSetFactory getFactory(AuthToken token)
          Returns the SOAP concrete set factory of the caller
 AuthToken getIdentity()
          Returns the identity of the actor.
 LoggingTool getLogger()
          
 java.lang.String getName()
          Returns the actor name.
 java.lang.String getServiceEndpoint()
          Returns the service endpoint of the actor
abstract  void initialize()
           
 void reset(java.util.Properties p)
          Restores the proxy state from the specified properties list public void save(Properties p) throws Exception { super.save(p); p.setProperty(PropertyServiceEndPoint, serviceEndpoint); } /** Restores the proxy state from the specified properties list
 
Methods inherited from class orca.shirako.proxies.Proxy
abstractCloneAuthority, abstractCloneBroker, abstractCloneReturn, getGuid, getPlugin, getProxy, getType, query, recoverProxy, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PropetyClientConfig

public static final java.lang.String PropetyClientConfig
See Also:
Constant Field Values

PropertyServiceEndPoint

public static final java.lang.String PropertyServiceEndPoint
Serialization property: the endpoint of the actor service

See Also:
Constant Field Values

serviceEndpoint

protected java.lang.String serviceEndpoint
The endpoint of the actor service


identity

protected AuthToken identity
Identity of the actor


logger

protected LoggingTool logger
The logger

Constructor Detail

SoapProxy

protected SoapProxy(java.lang.String serviceEndpoint,
                    AuthToken identity,
                    LoggingTool logger)
Create a new SOAP proxy

Parameters:
serviceEndpoint - Endpoint of the actor service
identity - AuthToken representing the the actor
logger - The logger
Method Detail

initialize

public abstract void initialize()
                         throws java.lang.Exception
Throws:
java.lang.Exception

getConfiguration

protected org.apache.axis.EngineConfiguration getConfiguration()
                                                        throws java.lang.Exception
Returns the engine configuration to be used by a proxy. The engine configuration is used to configure a proxy stubs

Returns:
Throws:
java.lang.Exception

getFactory

protected IConcreteSetFactory getFactory(AuthToken token)
                                  throws java.lang.Exception
Returns the SOAP concrete set factory of the caller

Parameters:
token - AuthToken of the caller
Returns:
Throws:
java.lang.Exception

reset

public void reset(java.util.Properties p)
           throws java.lang.Exception
Restores the proxy state from the specified properties list public void save(Properties p) throws Exception { super.save(p); p.setProperty(PropertyServiceEndPoint, serviceEndpoint); } /** Restores the proxy state from the specified properties list

Specified by:
reset in interface ISerialize
Overrides:
reset in class Proxy
Parameters:
p - properties list containing the serialized version of the object
Throws:
java.lang.Exception

getServiceEndpoint

public java.lang.String getServiceEndpoint()
Returns the service endpoint of the actor

Returns:

getIdentity

public AuthToken getIdentity()
Returns the identity of the actor.

Specified by:
getIdentity in interface IActorIdentity
Overrides:
getIdentity in class Proxy
Returns:
the actor's identity

getName

public java.lang.String getName()
Returns the actor name.

Specified by:
getName in interface IActorIdentity
Overrides:
getName in class Proxy
Returns:
the actor name. Note that actor names are expected to be unique.

getLogger

public LoggingTool getLogger()

Returns:


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.