You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ru...@apache.org on 2007/10/17 05:47:24 UTC
svn commit: r585352 -
/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
Author: ruwan
Date: Tue Oct 16 20:47:24 2007
New Revision: 585352
URL: http://svn.apache.org/viewvc?rev=585352&view=rev
Log:
Fixing the Digest generation issue, need to get a online build to pick the right wso2-caching-core.jar
Modified:
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java?rev=585352&r1=585351&r2=585352&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java Tue Oct 16 20:47:24 2007
@@ -151,10 +151,12 @@
cachedObj.setResponseEnvelope(
MessageHelper.cloneSOAPEnvelope(synCtx.getEnvelope()));
- // todo: there seems to be a problem with the digest generation of the response
- // this is not required for the moment
- // cachedObj.setResponseHash(digestGenerator.getDigest(
- // ((Axis2MessageContext) synCtx).getAxis2MessageContext()));
+ // this is not required yet can commented this for perf improvements
+ // in the future there can be a situation where user sends the request with the
+ // response hash (if client side caching is on) in which case we can compare that
+ // response hash with the given response hash and respond with not-modified http header
+ cachedObj.setResponseHash(digestGenerator.getDigest(
+ ((Axis2MessageContext) synCtx).getAxis2MessageContext()));
cachedObj.setExpireTime(
System.currentTimeMillis() + cachedObj.getTimeout());
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org