This commit is contained in:
Phillip Webb 2015-08-05 19:09:21 -07:00
parent 51fb2e32f6
commit 44aacd9559
2 changed files with 2 additions and 4 deletions

View File

@ -54,7 +54,7 @@ public class JolokiaMvcEndpoint implements MvcEndpoint, InitializingBean,
*/ */
@NotNull @NotNull
@Pattern(regexp = "/[^?#]*", message = "Path must start with /") @Pattern(regexp = "/[^?#]*", message = "Path must start with /")
private String path; private String path = "/jolokia";;
/** /**
* Enable security on the endpoint. * Enable security on the endpoint.
@ -69,7 +69,6 @@ public class JolokiaMvcEndpoint implements MvcEndpoint, InitializingBean,
private final ServletWrappingController controller = new ServletWrappingController(); private final ServletWrappingController controller = new ServletWrappingController();
public JolokiaMvcEndpoint() { public JolokiaMvcEndpoint() {
this.path = "/jolokia";
this.controller.setServletClass(AgentServlet.class); this.controller.setServletClass(AgentServlet.class);
this.controller.setServletName("jolokia"); this.controller.setServletName("jolokia");
} }
@ -136,6 +135,7 @@ public class JolokiaMvcEndpoint implements MvcEndpoint, InitializingBean,
private static class PathStripper extends HttpServletRequestWrapper { private static class PathStripper extends HttpServletRequestWrapper {
private final String path; private final String path;
private final UrlPathHelper urlPathHelper; private final UrlPathHelper urlPathHelper;
public PathStripper(HttpServletRequest request, String path) { public PathStripper(HttpServletRequest request, String path) {

View File

@ -61,13 +61,11 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware {
/** /**
* Enable security on the endpoint. * Enable security on the endpoint.
*/ */
private boolean sensitive = true; private boolean sensitive = true;
/** /**
* Enable the endpoint. * Enable the endpoint.
*/ */
private boolean enabled = true; private boolean enabled = true;
private Environment environment; private Environment environment;