You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ve...@apache.org on 2008/05/12 00:11:01 UTC
svn commit: r655379 - in /synapse/branches/1.2:
modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/
src/site/xdoc/
Author: veithen
Date: Sun May 11 15:11:00 2008
New Revision: 655379
URL: http://svn.apache.org/viewvc?rev=655379&view=rev
Log:
Documentation improvements, in particular related to SYNAPSE-261 and SYNAPSE-281.
Modified:
synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java
synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/DefaultEndpointFactory.java
synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java
synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointSerializer.java
synapse/branches/1.2/src/site/xdoc/Synapse_Configuration_Language.xml
Modified: synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java
URL: http://svn.apache.org/viewvc/synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java?rev=655379&r1=655378&r2=655379&view=diff
==============================================================================
--- synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java (original)
+++ synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java Sun May 11 15:11:00 2008
@@ -35,22 +35,23 @@
* Configuration syntax:
* <pre>
* <endpoint [name="<em>name</em>"]>
- * <address uri="<em>url</em>" [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
- * [encoding="<em>charset encoding</em>"]
- * [statistics="enable|disable"] [trace="enable|disable"]>
+ * <address uri="<em>endpoint address</em>" [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
+ * [encoding="<em>charset encoding</em>"]
+ * [statistics="enable|disable"] [trace="enable|disable"]>
* .. extensibility ..
- * <p/>
+ *
* <enableRM [policy="<em>key</em>"]/>?
* <enableSec [policy="<em>key</em>"]/>?
* <enableAddressing [version="final|submission"] [separateListener="true|false"]/>?
- * <p/>
+ *
* <timeout>
* <duration><em>timeout duration in seconds</em></duration>
* <action>discard|fault</action>
* </timeout>?
- * <p/>
+ *
* <suspendDurationOnFailure>
- * <em>suspend duration in seconds</em></suspendDurationOnFailure>?
+ * <em>suspend duration in seconds</em>
+ * </suspendDurationOnFailure>?
* </address>
* </endpoint>
* </pre>
Modified: synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/DefaultEndpointFactory.java
URL: http://svn.apache.org/viewvc/synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/DefaultEndpointFactory.java?rev=655379&r1=655378&r2=655379&view=diff
==============================================================================
--- synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/DefaultEndpointFactory.java (original)
+++ synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/DefaultEndpointFactory.java Sun May 11 15:11:00 2008
@@ -39,18 +39,19 @@
* [encoding="<em>charset encoding</em>"]
* [statistics="enable|disable"] [trace="enable|disable"]>
* .. extensibility ..
- * <p/>
+ *
* <enableRM [policy="<em>key</em>"]/>?
* <enableSec [policy="<em>key</em>"]/>?
* <enableAddressing [version="final|submission"] [separateListener="true|false"]/>?
- * <p/>
+ *
* <timeout>
* <duration><em>timeout duration in seconds</em></duration>
* <action>discard|fault</action>
* </timeout>?
- * <p/>
+ *
* <suspendDurationOnFailure>
- * <em>suspend duration in seconds</em></suspendDurationOnFailure>?
+ * <em>suspend duration in seconds</em>
+ * </suspendDurationOnFailure>?
* </address>
* </endpoint>
* </pre>
Modified: synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java
URL: http://svn.apache.org/viewvc/synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java?rev=655379&r1=655378&r2=655379&view=diff
==============================================================================
--- synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java (original)
+++ synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java Sun May 11 15:11:00 2008
@@ -38,19 +38,33 @@
/**
* Creates an {@link WSDLEndpoint} based endpoint from a XML configuration.
- * <p/>
- * <wsdl [uri="wsdl-uri"] service="qname" port/endpoint="qname">
- * <wsdl:definition>...</wsdl:definition>?
- * <wsdl20:description>...</wsdl20:description>?
- * <enableRM [policy="key"]/>?
- * <enableSec [policy="key"]/>?
- * <enableAddressing [version=("final" | "submission")]/>?
- * <suspendDurationOnFailure>suspend-duration</suspendDurationOnFailure>?
- * <timeout>
- * <duration>timeout-duration</duration>
- * <action>discard|fault</action>
- * </timeout>?
- * </wsdl>
+ * <p>
+ * Configuration syntax:
+ * <pre>
+ * <endpoint [name="<em>name</em>"]>
+ * <wsdl [uri="<em>WSDL location</em>"]
+ * service="<em>qualified name</em>" port="<em>qualified name</em>"
+ * [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
+ * [encoding="<em>charset encoding</em>"]
+ * [statistics="enable|disable"] [trace="enable|disable"]>
+ * <wsdl:definition>...</wsdl:definition>?
+ * <wsdl20:description>...</wsdl20:description>?
+ *
+ * <enableRM [policy="<em>key</em>"]/>?
+ * <enableSec [policy="<em>key</em>"]/>?
+ * <enableAddressing [version="final|submission"] [separateListener="true|false"]/>?
+ *
+ * <timeout>
+ * <duration><em>timeout duration in seconds</em></duration>
+ * <action>discard|fault</action>
+ * </timeout>?
+ *
+ * <suspendDurationOnFailure>
+ * <em>suspend duration in seconds</em>
+ * </suspendDurationOnFailure>?
+ * </wsdl>
+ * </endpoint>
+ * </pre>
*/
public class WSDLEndpointFactory extends EndpointFactory {
Modified: synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointSerializer.java
URL: http://svn.apache.org/viewvc/synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointSerializer.java?rev=655379&r1=655378&r2=655379&view=diff
==============================================================================
--- synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointSerializer.java (original)
+++ synapse/branches/1.2/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointSerializer.java Sun May 11 15:11:00 2008
@@ -29,13 +29,8 @@
/**
* Serializes an WSDL based endpoint to an XML configuration.
- * <p/>
- * <endpoint [name="name"]>
- * <suspendDurationOnFailue>suspend-duration</suspendDurationOnFailue>
- * <wsdl uri="wsdl uri" service="service name" port="port name">
- * .. extensibility ..
- * </wsdl>
- * </endpoint>
+ *
+ * @see WSDLEndpointFactory
*/
public class WSDLEndpointSerializer extends EndpointSerializer {
Modified: synapse/branches/1.2/src/site/xdoc/Synapse_Configuration_Language.xml
URL: http://svn.apache.org/viewvc/synapse/branches/1.2/src/site/xdoc/Synapse_Configuration_Language.xml?rev=655379&r1=655378&r2=655379&view=diff
==============================================================================
--- synapse/branches/1.2/src/site/xdoc/Synapse_Configuration_Language.xml (original)
+++ synapse/branches/1.2/src/site/xdoc/Synapse_Configuration_Language.xml Sun May 11 15:11:00 2008
@@ -484,7 +484,7 @@
</h4>
<p>
Address endpoint is an endpoint defined by specifying the EPR and other
- attributes of the endpoint directly in the configuration.The 'uri'
+ attributes of the endpoint directly in the configuration. The 'uri'
attribute of the address element contains the EPR of the target endpoint.
Message format for the endpoint and the method to optimize attachments can
be specified in the format and optimize attributes respectively. Reliable
@@ -519,28 +519,40 @@
enableAddressing elements. Optionally, the WS-RM and WS-Security policies
could be specified using the 'policy' attributes.
</p>
-<pre xml:space="preserve"><address uri="endpoint-address" [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]>
- <enableRM [policy="key"]/>?
- <enableSec [policy="key"]/>?
- <enableAddressing/>?
- <suspendDurationOnFailure>suspend-duration</suspendDurationOnFailure>?
+<pre xml:space="preserve"><address uri="<em>endpoint address</em>" [format="soap11|soap12|pox|get"] [optimize="mtom|swa"]
+ [encoding="<em>charset encoding</em>"]
+ [statistics="enable|disable"] [trace="enable|disable"]>
+ <enableRM [policy="<em>key</em>"]/>?
+ <enableSec [policy="<em>key</em>"]/>?
+ <enableAddressing [version="final|submission"] [separateListener="true|false"]/>?
+
<timeout>
- <duration>timeout-duration</duration>
+ <duration><em>timeout duration in seconds</em></duration>
<action>discard|fault</action>
</timeout>?
+
+ <suspendDurationOnFailure>
+ <em>suspend duration in seconds</em>
+ </suspendDurationOnFailure>?
</address></pre>
<p>
Following are some sample address URI definitions.
</p>
-<pre xml:space="preserve">e.g.
-HTTP http://localhost:9000/soap/SimpleStockQuoteService
-JMS jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&
- java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&
- java.naming.provider.url=tcp://localhost:61616&transport.jms.DestinationType=topic
-Mail mailto:guest@host
-File vfs:file:///home/user/directory
- vfs:file:///home/user/file
- vfs:ftp://guest:guest@localhost/directory?vfs.passive=true</pre>
+ <table border="1" cellpadding="0" cellspacing="0" style="width: 100%; font-size:small" class="data-table">
+ <tbody>
+ <tr><th>Transport</th><th>Sample address</th></tr>
+ <tr><td>HTTP</td><td><tt>http://localhost:9000/soap/SimpleStockQuoteService</tt></td></tr>
+ <tr><td>JMS</td><td><tt>jms:/SimpleStockQuoteService?<br/>
+    transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&<br/>
+    java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&<br/>
+    java.naming.provider.url=tcp://localhost:61616&<br/>
+    transport.jms.DestinationType=topic</tt></td></tr>
+ <tr><td>Mail</td><td><tt>mailto:guest@host</tt></td></tr>
+ <tr><td>VFS</td><td><tt>vfs:file:///home/user/directory</tt></td></tr>
+ <tr><td/><td><tt>vfs:file:///home/user/file</tt></td></tr>
+ <tr><td/><td><tt>vfs:ftp://guest:guest@localhost/directory?vfs.passive=true</tt></td></tr>
+ </tbody>
+ </table>
<h4>
<a name="wsdl-endpoint" id="wsdl-endpoint">WSDL Endpoint</a>
</h4>
@@ -859,7 +871,16 @@
transport.vfs.ContentType
</td>
<td>
- The content type for messages for this service
+ The expected content type for files retrieved for this service. The
+ VFS transport uses this information to select the appropriate
+ message builder.
+ <br/>
+ Examples:
+ <ul>
+ <li><tt>text/xml</tt> for plain XML or SOAP</li>
+ <li><tt>text/plain; charset=ISO-8859-1</tt> for text files</li>
+ <li><tt>application/octet-stream</tt> for binary data</li>
+ </ul>
</td>
</tr>
<tr>
@@ -963,12 +984,6 @@
</tr>
<tr>
<td/>
- <td/>
- <td/>
- <td/>
- </tr>
- <tr>
- <td/>
<td>
Optional
</td>
@@ -1003,12 +1018,6 @@
Timestamp prefix format for processed file name. java.text.SimpleDateFormat compatible string. e.g. yyMMddHHmmss'-'
</td>
</tr>
- <tr>
- <td/>
- <td/>
- <td/>
- <td/>
- </tr>
</tbody>
</table>
<p>