Browse Source

Polish

pull/3652/merge
Phillip Webb 11 years ago
parent
commit
44aacd9559
  1. 4
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/JolokiaMvcEndpoint.java
  2. 2
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java

4
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/JolokiaMvcEndpoint.java

@ -54,7 +54,7 @@ public class JolokiaMvcEndpoint implements MvcEndpoint, InitializingBean, @@ -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, @@ -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, @@ -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) {

2
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java

@ -61,13 +61,11 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware { @@ -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;

Loading…
Cancel
Save