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:28 UTC
[camel] branch master updated: CAMEL-12222: Fixed CS
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new af65202 CAMEL-12222: Fixed CS
af65202 is described below
commit af652022381667231ad5e1f142fd1b4992ead2a3
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 15f9d00..15c0f38 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;
@@ -64,18 +63,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;
}
@@ -103,6 +90,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);
@@ -133,7 +132,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.