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

View File

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