org.apache.ws.jaxme.js.apps
public class XmlRpcClientGenerator extends Object
| Constructor Summary | |
|---|---|
| XmlRpcClientGenerator(JavaSourceFactory pFactory, String pTargetPackage) Creates a new instance with the given factory and target package. | |
| Method Summary | |
|---|---|
| JavaSource | addClass(JavaSource pSource, JavaSourceResolver pResolver) Creates a new client class, which is invoking the given
server side class pSource. |
| protected String | addMethod(JavaMethod pMethod) Generates a name for the method pMethod and
adds it to the method map, the name being the key. |
| protected void | addMethods(JavaSource pResult, JavaSource pSource, Map pKeys, JavaField pField, JavaSourceResolver pResolver) |
| protected JavaConstructor | getConstructor(JavaSource pJs, JavaField jf) |
| JavaSource | getDispatcher(JavaQName pQName) Creates the dispatcher class. |
| JavaConstructor | getDispatcherConstructor(JavaSource pSource, JavaField pMap, JavaQName pInvoker) Creates the dispatchers constructor. |
| protected JavaMethod | getDispatcherInvokeMethod(JavaSource pSource, JavaQName pInvoker) Creates the dispatchers invoke method. |
| JavaSourceFactory | getFactory() Returns the factory, that was submitted to the constructor. |
| protected JavaMethod | getGetInvokerMethod(JavaSource pSource, JavaQName pInvoker, JavaField pMap) Creates the dispatchers getInvoker method. |
| protected Object | getInputValue(JavaMethod pMethod, JavaQName pType, Object pValue) Converts the given input pValue with type
pType into a valid XML-RPC type. |
| protected JavaSource | getInvoker(JavaSource pSource, JavaMethod pMethod, JavaQName pInvoker, int pNum) Creates a new invoker class for the given method. |
| JavaSource | getInvokerClass(JavaSource pSource) Generates the abstract invoker class. |
| protected JavaField | getInvokerMap(JavaSource pSource) Creates the field with the Map of invokers. |
| protected JavaMethod | getMethod(JavaSource pJs, JavaField pCaller, String pName, JavaMethod pMethod) Generates a method, invoking method pMethod using
the name pName. |
| protected Object | getResultValue(JavaMethod pMethod, JavaQName pType, Object pValue) Converts the result value pValue into the
requested type pType. |
| String | getTargetPackage() Returns the target package, that was submitted to the constructor. |
| protected JavaField | getXmlRpcCaller(JavaSource pJs) |
| boolean | isDispatcherImplementsXmlRpcHandler() Returns whether the generated dispatcher implements
XmlRpcHandler. |
| protected boolean | isMethodGenerated(JavaMethod pMethod) Returns, whether a remote method call is generated for method
pMethod. |
| void | setDispatcherImplementsXmlRpcHandler(boolean pDispatcherImplementsXmlRpcHandler) Sets whether the generated dispatcher implements
XmlRpcHandler. |
pSource.pMethod and
adds it to the method map, the name being the key.Returns: The generated name.
Parameters: pQName Fully qualified class name of the dispatcher class.
invoke method.getInvoker method.pValue with type
pType into a valid XML-RPC type.pMethod using
the name pName.Throws: NoSuchMethodException SecurityException
pValue into the
requested type pType.pMethod. The default implementation returns true,
if the method is public and not static.