Author: chanaka
Date: Tue May 13 22:53:09 2008
New Revision: 16977
Log:
Added Maximum Message Size property to the Cache Mediator UI
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/cache_mediator.js
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_edit.xsl
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_view.xsl
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/callout_edit.xsl
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/cache_mediator.js
==============================================================================
---
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/cache_mediator.js
(original)
+++
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/cache_mediator.js
Tue May 13 22:53:09 2008
@@ -40,6 +40,8 @@
var impl_type = document.getElementById("impl_type");
var max_size = document.getElementById("max_size");
var on_cache_hit = document.getElementById("on_cahe_hit");
+ var cache_timeout = document.getElementById("cache_timeout");
+ var max_msg_size = document.getElementById("max_msg_size");
if (cache_id != undefined && cache_id.value != undefined && cache_id.value
!= "") {
mediator.setAttribute("id", cache_id.value);
@@ -48,7 +50,9 @@
if (cache_scope != undefined && cache_scope.options != undefined &&
cache_scope.options.selectedIndex != undefined) {
mediator.setAttribute("scope",
cache_scope.options[cache_scope.options.selectedIndex].value);
}
-
+ if (max_msg_size != undefined && max_msg_size.value != undefined &&
max_msg_size.value != "") {
+ mediator.setAttribute("maxMessageSize", max_msg_size.value);
+ }
if (cache_flow != undefined && cache_flow.options != undefined
&& cache_flow.options.selectedIndex != undefined
&& cache_flow.options[cache_flow.options.selectedIndex].value ==
"collector") {
@@ -104,7 +108,7 @@
mediator.appendChild(createesbelement("<syn:onCacheHit sequence='"
+ on_cache_hit.value + "' xmlns:syn='http://ws.apache.org/ns/synapse'/>"));
}
}
-
+ alert(new XMLSerializer().serializeToString(mediator));
return true;
};
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_edit.xsl
==============================================================================
---
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_edit.xsl
(original)
+++
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_edit.xsl
Tue May 13 22:53:09 2008
@@ -100,6 +100,14 @@
</input>
</td>
</tr>
+ <tr>
+ <td style="width: 200px;">Maximum Message Size</td>
+ <td>
+ <input type="text" id="max_msg_size" class="esb-edit">
+ <xsl:attribute name="value"><xsl:value-of
select="@max_msg"/></xsl:attribute>
+ </input>
+ </td>
+ </tr>
</xsl:if>
</tbody>
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_view.xsl
==============================================================================
---
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_view.xsl
(original)
+++
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/cache_view.xsl
Tue May 13 22:53:09 2008
@@ -59,6 +59,10 @@
<td>Cache Timeout (seconds) </td>
<td><xsl:value-of select="@timeout"/></td>
</tr>
+ <tr>
+ <td>Maximum Message Size</td>
+ <td><xsl:value-of select="@maxMessageSize"/></td>
+ </tr>
</xsl:if>
</tbody>
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/callout_edit.xsl
==============================================================================
---
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/callout_edit.xsl
(original)
+++
trunk/esb/java/modules/distribution/src/main/www/extensions/core/xslt/mediators/callout_edit.xsl
Tue May 13 22:53:09 2008
@@ -86,7 +86,7 @@
sourcegroup
</xsl:attribute>
<xsl:attribute name="value">Key</xsl:attribute>
- <xsl:attribute
name="style">margin-left:120px;</xsl:attribute>
+ <xsl:attribute
name="style">margin-left:20px;</xsl:attribute>
<xsl:if test="syn:source/@key or (@source_key and
@source_key=0)">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
@@ -166,7 +166,7 @@
targetgroup
</xsl:attribute>
<xsl:attribute name="value">XPath</xsl:attribute>
- <xsl:attribute name="style">margin-left:
3em;</xsl:attribute>
+ <xsl:attribute
name="style">margin-left:50px;</xsl:attribute>
<xsl:if test="syn:target/@xpath or (@target_xpath and
@target_xpath=0)">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
@@ -181,7 +181,7 @@
targetgroup
</xsl:attribute>
<xsl:attribute name="value">Key</xsl:attribute>
- <xsl:attribute
name="style">margin-left:120px;</xsl:attribute>
+ <xsl:attribute
name="style">margin-left:20px;</xsl:attribute>
<xsl:if test="syn:target/@key or (@target_key and
@target_key=0)">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev