axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morgan Delagrange <morg...@apache.org>
Subject Re: [PATCH] new RPCDispatchHandler feature
Date Thu, 19 Apr 2001 21:28:03 GMT
I slightly fouled up the Javadocs in my patch.  You'll want to
replace this:

  <@link invoke(MessageContext)>

with this:

  {@link #invoke(MessageContext)}

I won't bother you with a separate patch for a documentation bug.

- Morgan

On Thu, 19 Apr 2001, Morgan Delagrange wrote:

> Hi all,
> 
> I'd like to propose a patch (attached) to the RPCDispatchHandler.  I've
> added a new method called handleObject, which subclasses may override to
> manipulate the JavaBean before the RPC method is invoked.  This should
> provide more potential configurability to the Axis users.  Here's an
> example of a method that a subclass of RPCDispatchHandler could implement,
> which would give a specialized Bean access to the servlet request and
> response:
> 
>   protected void handleObject(MessageContext reqContext,
>                               Object rpcObject) {
>     PropertyBean bean = (PropertyBean) rpcObject;
> 
>     bean.setProperty(HTTPConstants.MC_HTTP_SERVLET,
>       reqContext.getProperty(HTTPConstants.MC_HTTP_SERVLET));
>     bean.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST,
>       reqContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST));
>     bean.setProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE,
>       reqContext.getProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE));
>   }
> 
> This is a technique that I've used with Apache-SOAP; I think it would be a
> good addition to Axis as well.
> 
> - Morgan
> 
> 


Mime
View raw message