camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Stub
Date Fri, 02 Mar 2012 14:28:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/Stub">Stub</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~jstrachan">James
Strachan</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h2><a name="Stub-StubComponent"></a>Stub Component</h2>

<p>The <b>stub:</b> component provides a simple way to stub out any physical
endpoints for easy testing. Just add <b>stub:</b> in front of any endpoint URI
and things just work.</p>

<p>Under the covers the Stub component creates <a href="/confluence/display/CAMEL/VM"
title="VM">VM</a> endpoints.</p>

<p>So if you are in development and want to try a route out but don't want to connect
to a specific <a href="/confluence/pages/createpage.action?spaceKey=CAMEL&amp;title=Smtp&amp;linkCreation=true&amp;fromPageId=27839951"
class="createlink">Smtp</a> or <a href="/confluence/display/CAMEL/HTTP" title="HTTP">HTTP</a>
endpoint, just put <b>stub:</b> in front and stub it out! <img class="emoticon"
src="/confluence/images/icons/emoticons/smile.gif" height="20" width="20" align="absmiddle"
alt="" border="0"/></p>

<h3><a name="Stub-URIformat"></a>URI format</h3>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
stub:someUri
</pre>
</div></div>

<p>Where <b><tt>someUri</tt></b> can be any URI at all with
any query </p>

<h3><a name="Stub-SeeAlso"></a>See Also</h3>
<ul>
	<li><a href="/confluence/display/CAMEL/Configuring+Camel" title="Configuring Camel">Configuring
Camel</a></li>
	<li><a href="/confluence/display/CAMEL/Component" title="Component">Component</a></li>
	<li><a href="/confluence/display/CAMEL/Endpoint" title="Endpoint">Endpoint</a></li>
	<li><a href="/confluence/display/CAMEL/Getting+Started" title="Getting Started">Getting
Started</a></li>
</ul>

    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/CAMEL/Stub">View Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CAMEL/Stub?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message