You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rpc-dev@xml.apache.org by Adam Megacz <ad...@megacz.com> on 2002/08/17 00:07:33 UTC

how to setDebug(true) on XmlRpcServer?

Since XmlRpcServer hides its XmlRpc in a package-protected inner
class, how can I turn on debugging when using an XmlRpcServer?

  - a

-- 
Sick of HTML user interfaces?
www.xwt.org

Re: how to setDebug(true) on XmlRpcServer?

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Adam Megacz <ad...@megacz.com> writes:

> Daniel Rall <dl...@finemaltcoding.com> writes:
> > Since the "debug" field of the XmlRpc class is a class member (rather
> > than an instance member)
> 
> Whoops! Didn't see that.

No problemo; the current architecture has issues.
-- 

Daniel Rall <dl...@finemaltcoding.com>

Re: how to setDebug(true) on XmlRpcServer?

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Adam Megacz <ad...@megacz.com> writes:

> Daniel Rall <dl...@finemaltcoding.com> writes:
> > Since the "debug" field of the XmlRpc class is a class member (rather
> > than an instance member)
> 
> Whoops! Didn't see that.

No problemo; the current architecture has issues.
-- 

Daniel Rall <dl...@finemaltcoding.com>

Re: how to setDebug(true) on XmlRpcServer?

Posted by Adam Megacz <ad...@megacz.com>.
Daniel Rall <dl...@finemaltcoding.com> writes:
> Since the "debug" field of the XmlRpc class is a class member (rather
> than an instance member)

Whoops! Didn't see that.

  - a

-- 
Sick of HTML user interfaces?
www.xwt.org

Re: how to setDebug(true) on XmlRpcServer?

Posted by Adam Megacz <ad...@megacz.com>.
Daniel Rall <dl...@finemaltcoding.com> writes:
> Since the "debug" field of the XmlRpc class is a class member (rather
> than an instance member)

Whoops! Didn't see that.

  - a

-- 
Sick of HTML user interfaces?
www.xwt.org

Re: how to setDebug(true) on XmlRpcServer?

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Adam Megacz <ad...@megacz.com> writes:

> Since XmlRpcServer hides its XmlRpc in a package-protected inner
> class, how can I turn on debugging when using an XmlRpcServer?

Doing the following will work:

  XmlRpc.setDebug(true);

Since the "debug" field of the XmlRpc class is a class member (rather
than an instance member), there is only one copy no matter how many
sub-classes you make (so setting that one copy affects all
sub-classes).

The architecture of the XML-RPC package would be drastically improved
using a pattern similar to the RuntimeEngine/RuntimeSingleton classes
in Velocity's org.apache.velocity.runtime package.
-- 

Daniel Rall <dl...@finemaltcoding.com>

Re: how to setDebug(true) on XmlRpcServer?

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Adam Megacz <ad...@megacz.com> writes:

> Since XmlRpcServer hides its XmlRpc in a package-protected inner
> class, how can I turn on debugging when using an XmlRpcServer?

Doing the following will work:

  XmlRpc.setDebug(true);

Since the "debug" field of the XmlRpc class is a class member (rather
than an instance member), there is only one copy no matter how many
sub-classes you make (so setting that one copy affects all
sub-classes).

The architecture of the XML-RPC package would be drastically improved
using a pattern similar to the RuntimeEngine/RuntimeSingleton classes
in Velocity's org.apache.velocity.runtime package.
-- 

Daniel Rall <dl...@finemaltcoding.com>