What is the advantage of using org.apache.xmlrpc.webserver.ServletWebServer instead of or.apache.xmlrpc.webserver.WebServer when working with XMLRPC in JAVA?
我能否利用“SerletWebServer”的原始类型或无效的回归阵列的功能?
What is the advantage of using org.apache.xmlrpc.webserver.ServletWebServer instead of or.apache.xmlrpc.webserver.WebServer when working with XMLRPC in JAVA?
我能否利用“SerletWebServer”的原始类型或无效的回归阵列的功能?
rel=“nofollow noreferer”>documentation sais ,如果你使用SerletWebServer的话,你将有可能迁移到另一个基于网络服务器的服务器,如Tomcat。 我没有从WebServer超等舱那里获得任何其他好处。
If you still insist in using the WebServer, it is recommended to use its subclass, the ServletWebServer instead, which offers a minimal subset of the servlet API. In other words, you keep yourself the option to migrate to a real servlet engine later.
我回顾,利用WebServer在一项互换申请中推出一个独立的PC服务器。 我的猜测是,在使用SerletWebServer时,需要servlet-api<>jars.(见@Daff response)。
阅读阿帕奇XMLRPC的文件,看看你能够返回哪一类,如何增加延期(如果需要的话)。