| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.js.apps.XmlRpcClientGenerator
This class generates clients for Apache XML-RPC. The basic idea goes as follows:
XmlRpcCaller.
| Constructor Summary | |
| XmlRpcClientGenerator(JavaSourceFactory pFactory,
                      java.lang.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  java.lang.String | addMethod(JavaMethod pMethod)Generates a name for the method pMethodand
 adds it to the method map, the name being the key. | 
| protected  void | addMethods(JavaSource pResult,
           JavaSource pSource,
           java.util.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 invokemethod. | 
|  JavaSourceFactory | getFactory()Returns the factory, that was submitted to the constructor. | 
| protected  JavaMethod | getGetInvokerMethod(JavaSource pSource,
                    JavaQName pInvoker,
                    JavaField pMap)Creates the dispatchers getInvokermethod. | 
| protected  java.lang.Object | getInputValue(JavaMethod pMethod,
              JavaQName pType,
              java.lang.Object pValue)Converts the given input pValuewith typepTypeinto 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 Mapof invokers. | 
| protected  JavaMethod | getMethod(JavaSource pJs,
          JavaField pCaller,
          java.lang.String pName,
          JavaMethod pMethod)Generates a method, invoking method pMethodusing
 the namepName. | 
| protected  java.lang.Object | getResultValue(JavaMethod pMethod,
               JavaQName pType,
               java.lang.Object pValue)Converts the result value pValueinto the
 requested typepType. | 
|  java.lang.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. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public XmlRpcClientGenerator(JavaSourceFactory pFactory,
                             java.lang.String pTargetPackage)
| Method Detail | 
public boolean isDispatcherImplementsXmlRpcHandler()
public void setDispatcherImplementsXmlRpcHandler(boolean pDispatcherImplementsXmlRpcHandler)
public JavaSourceFactory getFactory()
public java.lang.String getTargetPackage()
protected java.lang.String addMethod(JavaMethod pMethod)
pMethod and
 adds it to the method map, the name being the key.
protected java.lang.Object getResultValue(JavaMethod pMethod,
                                          JavaQName pType,
                                          java.lang.Object pValue)
pValue into the
 requested type pType.
protected java.lang.Object getInputValue(JavaMethod pMethod,
                                         JavaQName pType,
                                         java.lang.Object pValue)
pValue with type
 pType into a valid XML-RPC type.
protected JavaMethod getMethod(JavaSource pJs,
                               JavaField pCaller,
                               java.lang.String pName,
                               JavaMethod pMethod)
                        throws java.lang.SecurityException,
                               java.lang.NoSuchMethodException
pMethod using
 the name pName.
java.lang.NoSuchMethodException
java.lang.SecurityExceptionprotected JavaField getXmlRpcCaller(JavaSource pJs)
protected JavaConstructor getConstructor(JavaSource pJs,
                                         JavaField jf)
protected boolean isMethodGenerated(JavaMethod pMethod)
pMethod. The default implementation returns true,
 if the method is public and not static.
public JavaSource addClass(JavaSource pSource,
                           JavaSourceResolver pResolver)
                    throws java.lang.SecurityException,
                           java.lang.NoSuchMethodException
pSource.
java.lang.SecurityException
java.lang.NoSuchMethodException
protected void addMethods(JavaSource pResult,
                          JavaSource pSource,
                          java.util.Map pKeys,
                          JavaField pField,
                          JavaSourceResolver pResolver)
                   throws java.lang.SecurityException,
                          java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.NoSuchMethodExceptionpublic JavaSource getInvokerClass(JavaSource pSource)
protected JavaField getInvokerMap(JavaSource pSource)
Map of invokers.
protected JavaSource getInvoker(JavaSource pSource,
                                JavaMethod pMethod,
                                JavaQName pInvoker,
                                int pNum)
public JavaConstructor getDispatcherConstructor(JavaSource pSource,
                                                JavaField pMap,
                                                JavaQName pInvoker)
protected JavaMethod getGetInvokerMethod(JavaSource pSource,
                                         JavaQName pInvoker,
                                         JavaField pMap)
getInvoker method.
protected JavaMethod getDispatcherInvokeMethod(JavaSource pSource,
                                               JavaQName pInvoker)
invoke method.
public JavaSource getDispatcher(JavaQName pQName)
addClass(JavaSource, JavaSourceResolver)!
pQName - Fully qualified class name of the dispatcher class.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||