|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.service.ServiceProxyArgs
public class ServiceProxyArgs
An object which is passed between the layers of a route. It maintains Hashtables of argument names and values which can be changed, added to or removed by any of the layers. It contains utility functions for retrieving or removing arguments by name.
Copyright (c) Xoetrope Ltd., 2001-2006, see license.txt for details
| Constructor Summary | |
|---|---|
ServiceProxyArgs(int numArgs)
Creates a new instance of ServiceProxyArgs with the number of specified arguments |
|
ServiceProxyArgs(java.lang.String[] argNames)
Creates a new instance of ServiceProxyArgs with the passed argument names initialising the names array |
|
ServiceProxyArgs(java.lang.String[] argNames,
java.lang.Object[] argValues)
Creates a new instance of ServiceProxyArgs with the passed argument names and values initialising arrays |
|
| Method Summary | |
|---|---|
void |
addError(java.lang.String error)
Add an error String to the errors Vector |
void |
clearErrors()
Reset the errors Vector for the next call. |
java.lang.Object |
getConfigParam(java.lang.String name)
Retrieves the value of the configuration argument specified by the name parameter |
java.util.Vector |
getErrors()
Retrieve the errors Vector |
int |
getNumPassArgs()
Retrive the number of arguments currently being stored |
int |
getNumReturnArgs()
Retrive the number of arguments currently being stored |
java.util.Hashtable |
getPassArgs()
Retrieve the passArgs Hashtable |
java.lang.Object |
getPassParam(java.lang.String name)
Retrieves the value of the argument specified by the name parameter |
int |
getPassParamAsInt(java.lang.String name)
Retrieves the value of the pass argument specified by the name parameter and converts it to an int |
java.util.Hashtable |
getReturnArgs()
Retrieve the return args Hashtable |
java.lang.Object |
getReturnParam(java.lang.String name)
Retrieves the value of the return argument specified by the name parameter |
int |
getReturnParamAsInt(java.lang.String name)
Retrieves the value of the return argument specified by the name parameter and converts it to an int |
boolean |
hasErrors()
If the errors hashtable has any entries then an error has been generated. |
void |
removePassParam(java.lang.String name)
Remove the named argument from the passArgs Hashtable |
void |
removeReturnParam(java.lang.String name)
Remove the named argument from the returnArgs Hashtable |
void |
setConfigParam(java.lang.String name,
java.lang.Object value)
Sets the value of the named configuration parameter |
void |
setPassParam(java.lang.String name,
java.lang.Object value)
Sets the value of the named pass parameter |
void |
setReturnParam(java.lang.String name,
java.lang.Object value)
Sets the value of the named return parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceProxyArgs(int numArgs)
numArgs - the number of initial argumentspublic ServiceProxyArgs(java.lang.String[] argNames)
argNames - the initial argument names
public ServiceProxyArgs(java.lang.String[] argNames,
java.lang.Object[] argValues)
argNames - the initial argument namesargValues - the initial argument values| Method Detail |
|---|
public java.lang.Object getPassParam(java.lang.String name)
name - the name of the argument to retrieve
public java.lang.Object getConfigParam(java.lang.String name)
name - the name of the argument to retrieve
public java.lang.Object getReturnParam(java.lang.String name)
name - the name of the return argument to retrieve
public int getPassParamAsInt(java.lang.String name)
name - the name of the argument to retrieve
public int getReturnParamAsInt(java.lang.String name)
name - the name of the argument to retrieve
public boolean hasErrors()
public void setPassParam(java.lang.String name,
java.lang.Object value)
name - the name of the argumentvalue - the new value of the argument
public void setReturnParam(java.lang.String name,
java.lang.Object value)
name - the name of the argumentvalue - the new value of the argument
public void setConfigParam(java.lang.String name,
java.lang.Object value)
name - the name of the argumentvalue - the new value of the argumentpublic int getNumPassArgs()
public int getNumReturnArgs()
public void removePassParam(java.lang.String name)
name - the name of the argument to be removedpublic void removeReturnParam(java.lang.String name)
name - the name of the argument to be removedpublic java.util.Hashtable getPassArgs()
public java.util.Hashtable getReturnArgs()
public java.util.Vector getErrors()
public void addError(java.lang.String error)
error - The new error to be addedpublic void clearErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||