You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2014/08/26 12:18:32 UTC

svn commit: r920444 - in /websites/production/camel/content: cache/main.pageCache swagger.html

Author: buildbot
Date: Tue Aug 26 10:18:31 2014
New Revision: 920444

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/swagger.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/swagger.html
==============================================================================
--- websites/production/camel/content/swagger.html (original)
+++ websites/production/camel/content/swagger.html Tue Aug 26 10:18:31 2014
@@ -92,11 +92,11 @@
     <!-- use the same version as your Camel core version -->
 </dependency>
 ]]></script>
-</div></div><h3 id="Swagger-Using">Using</h3><p>To use this you need to configure the&#160;<code>org.apache.camel.component.swagger.RestSwaggerApiDeclarationServlet</code>&#160;in the&#160;<code>WEB-INF/web.xml</code>&#160;file as shown below:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[  &lt;!-- to setup Camel Swagger api servlet --&gt;
+</div></div><h3 id="Swagger-Using">Using</h3><p>The Swagger servlet is integrated with Spring or&#160;<a shape="rect" href="servletlistener-component.html">ServletListener Component</a>.&#160;</p><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Component</th><th colspan="1" rowspan="1" class="confluenceTh">Servlet ClassName</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">spring</td><td colspan="1" rowspan="1" class="confluenceTd"><code>org.apache.camel.component.swagger.spring.SpringRestSwaggerApiDeclarationServlet</code>&#160;</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">servletlistener</td><td colspan="1" rowspan="1" class="confluenceTd"><code>org.apache.camel.component.swagger.servletlistener.ServletListenerRestSwaggerApiDeclarationServlet</code></td></tr></tbody></table></div><p>The servlet support the same options when using spring or servletlistener.</p><p>When using Spring you nee
 d to configure the&#160;<code>org.apache.camel.component.swagger.spring.SpringRestSwaggerApiDeclarationServlet</code>&#160;in the&#160;<code>WEB-INF/web.xml</code>&#160;file as shown below:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[  &lt;!-- to setup Camel Swagger api servlet when using Spring --&gt;
   &lt;servlet&gt;
     &lt;servlet-name&gt;ApiDeclarationServlet&lt;/servlet-name&gt;
-    &lt;servlet-class&gt;org.apache.camel.component.swagger.RestSwaggerApiDeclarationServlet&lt;/servlet-class&gt;
+    &lt;servlet-class&gt;org.apache.camel.component.swagger.spring.SpringRestSwaggerApiDeclarationServlet&lt;/servlet-class&gt;
     &lt;init-param&gt;
       &lt;param-name&gt;base.path&lt;/param-name&gt;
       &lt;param-value&gt;http://localhost:8080/rest&lt;/param-value&gt;