|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.service.ServiceProxy
public abstract class ServiceProxy
The basis of each element in the service proxy stack.
Copyright (c) Xoetrope Ltd. 2001-2003
$Revision: 2.8 $
| Field Summary | |
|---|---|
static int |
COMPLETE
The call has ended |
protected XExceptionHandler |
exceptionHandler
|
static int |
FAILED
The call has failed |
protected ServiceProxy |
nextProxy
The next proxy in the route |
static int |
OK
Call is OK |
static int |
PENDING
The call is pending |
protected java.lang.String |
routeName
The name of the route of which this ServiceProxy is a layer |
protected java.lang.String |
serviceName
The name of the service being called |
protected int |
side
is this instance of the layer on the client or the server? |
static int |
STARTED
The call has been started |
protected int |
status
The status of the ServiceProxy call |
| Constructor Summary | |
|---|---|
ServiceProxy()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
call()
Calls call( null, null ) |
abstract java.lang.Object |
call(java.lang.String method,
ServiceContext context)
Call this proxy with the specified arguments |
java.lang.Object |
callNextProxy(java.lang.String method,
ServiceContext context,
java.lang.Object ret)
Utility function to call the next ServiceProxy if it is not null. |
protected java.lang.String |
getRouteName()
Retrieve the name of the proxy route. |
protected java.lang.String |
getServiceName()
Retrieves the service name. |
protected int |
getSide()
Retrieve the side of the proxy (Client or Server) |
int |
getStatus()
Retrieves the current state of the proxy |
void |
setAttributes(java.util.Hashtable t)
Set the attributes for this service proxy. |
void |
setExceptionHandler(XExceptionHandler handler)
Set an exception handler for the ServiceProxy |
void |
setNextProxy(ServiceProxy sp)
Set the next ServiceProxy in the route. |
void |
setRouteName(java.lang.String route)
Set the name of the proxy route |
void |
setServiceName(java.lang.String name)
Sets the proxy service name |
void |
setSide(int activeSide)
Sets the side on which the proxy resides (Client or Server) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OK
public static final int STARTED
public static final int PENDING
public static final int COMPLETE
public static final int FAILED
protected java.lang.String routeName
protected java.lang.String serviceName
protected int status
protected ServiceProxy nextProxy
protected int side
protected XExceptionHandler exceptionHandler
| Constructor Detail |
|---|
public ServiceProxy()
| Method Detail |
|---|
public java.lang.Object call()
throws ServiceProxyException
ServiceProxyException - Throw a ServiceProxyException if there is a problem
public abstract java.lang.Object call(java.lang.String method,
ServiceContext context)
throws ServiceProxyException
context - The ServiceContext contain pass and return parametersmethod - the name of the service being called
ServiceProxyException - Throw an exception if there is a problem with the call
public java.lang.Object callNextProxy(java.lang.String method,
ServiceContext context,
java.lang.Object ret)
throws ServiceProxyException
context - The ServiceContext contain pass and return parametersmethod - the name of the service being calledret - the return object if the next proxy is null
ServiceProxyException - Throw an exception if there is a problem with the callpublic int getStatus()
public void setSide(int activeSide)
activeSide - the side of the proxyprotected int getSide()
protected java.lang.String getRouteName()
public void setRouteName(java.lang.String route)
route - the route nameprotected java.lang.String getServiceName()
public void setServiceName(java.lang.String name)
name - the proxy service namepublic void setNextProxy(ServiceProxy sp)
sp - the next ServiceProxy in the routepublic void setAttributes(java.util.Hashtable t)
t - The Hashtable of attributes as found in the XML declarationpublic void setExceptionHandler(XExceptionHandler handler)
handler - The XExceptionHandler which will take care of problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||