Skip to content

Commit

Permalink
CAMEL-12222: Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Feb 13, 2018
1 parent f01dead commit af65202
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -103,6 +90,18 @@ public void setApiContextIdListing(boolean apiContextIdListing) {
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);
Expand Down Expand Up @@ -133,7 +132,6 @@ public void init(final ServletConfig config) throws ServletException {
if (translate != null) {
translateContextPath = Boolean.valueOf(translate.toString());
}

}

@Override
Expand Down

0 comments on commit af65202

Please sign in to comment.