You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/02/13 14:31:29 UTC
[camel] 02/02: CAMEL-12222: Fixed CS
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit bc5a0a8db0b36d4f7a2dec1b3a8e21ac2abab552
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 13 09:30:03 2018 -0500
CAMEL-12222: Fixed CS
---
.../camel/swagger/servlet/RestSwaggerServlet.java | 26 ++++++++++------------
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java
index 77ba9510..7198898 100644
--- a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java
+++ b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java
@@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import io.swagger.jaxrs.config.BeanConfig;
-import org.apache.camel.Exchange;
import org.apache.camel.impl.DefaultClassResolver;
import org.apache.camel.spi.ClassResolver;
import org.apache.camel.spi.RestConfiguration;
@@ -61,18 +60,6 @@ public class RestSwaggerServlet extends HttpServlet {
private boolean apiContextIdListing;
private boolean translateContextPath = true;
-
- public boolean isTranslateContextPath() { return translateContextPath; }
-
- /**
- * Sets whether the context path of the request should be translated (true) or used as-is (false)
- * Optional, Defaults to true
- * @param translateContextPath
- */
- public void setTranslateContextPath(boolean translateContextPath) { this.translateContextPath = translateContextPath; }
-
-
-
public String getApiContextIdPattern() {
return apiContextIdPattern;
}
@@ -100,6 +87,18 @@ public class RestSwaggerServlet extends HttpServlet {
this.apiContextIdListing = apiContextIdListing;
}
+ public boolean isTranslateContextPath() {
+ return translateContextPath;
+ }
+
+ /**
+ * Sets whether the context path of the request should be translated (true) or used as-is (false)
+ * Optional, Defaults to true
+ */
+ public void setTranslateContextPath(boolean translateContextPath) {
+ this.translateContextPath = translateContextPath;
+ }
+
@Override
public void init(final ServletConfig config) throws ServletException {
super.init(config);
@@ -130,7 +129,6 @@ public class RestSwaggerServlet extends HttpServlet {
if (translate != null) {
translateContextPath = Boolean.valueOf(translate.toString());
}
-
}
@Override
--
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.