CAMEL-10164: Polished

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e097a5d9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e097a5d9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e097a5d9

Branch: refs/heads/master
Commit: e097a5d9bac56acb5b4d08f5dd2de645101a7629
Parents: 642128b
Author: Claus Ibsen <davscl...@apache.org>
Authored: Mon Sep 5 10:56:49 2016 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon Sep 5 16:26:13 2016 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/rest/RestProducer.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e097a5d9/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java 
b/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
index 87475d6..9508ba5 100644
--- a/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
+++ b/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
@@ -39,7 +39,7 @@ public class RestProducer extends DefaultAsyncProducer {
     // the producer of the Camel component that is used as the HTTP client to 
call the REST service
     private AsyncProcessor producer;
 
-    private boolean preapreUriTemplate = true;
+    private boolean prepareUriTemplate = true;
 
     public RestProducer(Endpoint endpoint, Producer producer) {
         super(endpoint);
@@ -66,16 +66,16 @@ public class RestProducer extends DefaultAsyncProducer {
         return (RestEndpoint) super.getEndpoint();
     }
 
-    public boolean isPreapreUriTemplate() {
-        return preapreUriTemplate;
+    public boolean isPrepareUriTemplate() {
+        return prepareUriTemplate;
     }
 
     /**
      * Whether to prepare the uri template and replace {key} with values from 
the exchange, and set
      * as {@link Exchange#HTTP_URI} header with the resolved uri to use 
instead of uri from endpoint.
      */
-    public void setPreapreUriTemplate(boolean preapreUriTemplate) {
-        this.preapreUriTemplate = preapreUriTemplate;
+    public void setPrepareUriTemplate(boolean prepareUriTemplate) {
+        this.prepareUriTemplate = prepareUriTemplate;
     }
 
     protected void prepareExchange(Exchange exchange) throws Exception {
@@ -85,7 +85,7 @@ public class RestProducer extends DefaultAsyncProducer {
         // uri template may be optional and the user have entered the uri 
template in the path instead
         String resolvedUriTemplate = getEndpoint().getUriTemplate() != null ? 
getEndpoint().getUriTemplate() : getEndpoint().getPath();
 
-        if (preapreUriTemplate) {
+        if (prepareUriTemplate) {
             if (resolvedUriTemplate.contains("{")) {
                 // resolve template and replace {key} with the values form the 
exchange
                 // each {} is a parameter (url templating)

Reply via email to