You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Mark Ericson <ma...@mindreef.com> on 2002/09/03 22:54:17 UTC

Proposal: finer-grained handler hooks

The 'Handler' mechanism and concept of 'Pivot' point is very valuable in
Axis.  I have discovered that it unfortunately doesn't provide the
granularity required for certain uses.

I find the need to independently hook pre/post serialization and
pre/post deserialization for my extensions.  I believe that this level
of granularity is generally valuable for a variety of uses:

- An XML-based security mechanism's handler would want to operate on the
data before serialization on the client and after deserialization on the
server.

- A compression handler, perhaps GZIP of the data, would operate after
serialization on the client and before deserialization on the server

- Performance tools will want to instrument code to separate out
serialization/deserialization overhead from other processing time.

- Logging information to the common log at key points in message
processing

.NET provides the types of extensibility hooks I've described.  You can
receive callbacks at the following points of message handling for both
client and server:

	BeforeSerialize
	AfterSerialize
	BeforeDeserialize
	AfterDeserialize


- Mark