Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
332c6911
Commit
332c6911
authored
Nov 10, 2015
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
aa8d0dd0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
52 deletions
+56
-52
DocsMvcEndpoint.java
...gframework/boot/actuate/endpoint/mvc/DocsMvcEndpoint.java
+18
-2
HalJsonMvcEndpoint.java
...amework/boot/actuate/endpoint/mvc/HalJsonMvcEndpoint.java
+13
-14
JolokiaMvcEndpoint.java
...amework/boot/actuate/endpoint/mvc/JolokiaMvcEndpoint.java
+12
-12
LogFileMvcEndpoint.java
...amework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java
+12
-12
ManagementErrorEndpoint.java
...rk/boot/actuate/endpoint/mvc/ManagementErrorEndpoint.java
+1
-0
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+0
-12
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/DocsMvcEndpoint.java
View file @
332c6911
...
...
@@ -36,6 +36,14 @@ public class DocsMvcEndpoint extends WebMvcConfigurerAdapter implements MvcEndpo
private
String
path
=
"/docs"
;
/**
* Enable the endpoint.
*/
private
boolean
enabled
=
true
;
/**
* Mark if the endpoint exposes sensitive information.
*/
private
boolean
sensitive
;
private
final
ManagementServletContext
managementServletContext
;
...
...
@@ -78,8 +86,12 @@ public class DocsMvcEndpoint extends WebMvcConfigurerAdapter implements MvcEndpo
return
this
.
path
;
}
public
void
setSensitive
(
boolean
sensitive
)
{
this
.
sensitive
=
sensitive
;
public
boolean
isEnabled
()
{
return
this
.
enabled
;
}
public
void
setEnabled
(
boolean
enabled
)
{
this
.
enabled
=
enabled
;
}
@Override
...
...
@@ -87,6 +99,10 @@ public class DocsMvcEndpoint extends WebMvcConfigurerAdapter implements MvcEndpo
return
this
.
sensitive
;
}
public
void
setSensitive
(
boolean
sensitive
)
{
this
.
sensitive
=
sensitive
;
}
@Override
public
Class
<?
extends
Endpoint
<?>>
getEndpointType
()
{
return
null
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HalJsonMvcEndpoint.java
View file @
332c6911
...
...
@@ -37,8 +37,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
* @since 1.3.0
*/
@ConfigurationProperties
(
"endpoints.actuator"
)
public
class
HalJsonMvcEndpoint
extends
WebMvcConfigurerAdapter
implements
MvcEndpoint
{
public
class
HalJsonMvcEndpoint
extends
WebMvcConfigurerAdapter
implements
MvcEndpoint
{
/**
* Endpoint URL path.
...
...
@@ -48,14 +47,14 @@ public class HalJsonMvcEndpoint extends WebMvcConfigurerAdapter
private
String
path
;
/**
* Enable
security on
the endpoint.
* Enable the endpoint.
*/
private
boolean
sensitive
=
fals
e
;
private
boolean
enabled
=
tru
e
;
/**
*
Enable the endpoint
.
*
Mark if the endpoint exposes sensitive information
.
*/
private
boolean
enabled
=
tru
e
;
private
boolean
sensitive
=
fals
e
;
private
final
ManagementServletContext
managementServletContext
;
...
...
@@ -86,6 +85,14 @@ public class HalJsonMvcEndpoint extends WebMvcConfigurerAdapter
return
this
.
path
;
}
public
boolean
isEnabled
()
{
return
this
.
enabled
;
}
public
void
setEnabled
(
boolean
enabled
)
{
this
.
enabled
=
enabled
;
}
@Override
public
boolean
isSensitive
()
{
return
this
.
sensitive
;
...
...
@@ -95,14 +102,6 @@ public class HalJsonMvcEndpoint extends WebMvcConfigurerAdapter
this
.
sensitive
=
sensitive
;
}
public
boolean
isEnabled
()
{
return
this
.
enabled
;
}
public
void
setEnabled
(
boolean
enabled
)
{
this
.
enabled
=
enabled
;
}
@Override
public
Class
<?
extends
Endpoint
<?>>
getEndpointType
()
{
return
null
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/JolokiaMvcEndpoint.java
View file @
332c6911
...
...
@@ -58,14 +58,14 @@ public class JolokiaMvcEndpoint implements MvcEndpoint, InitializingBean,
private
String
path
=
"/jolokia"
;;
/**
* Enable
security on
the endpoint.
* Enable the endpoint.
*/
private
boolean
sensitive
=
true
;
private
boolean
enabled
=
true
;
/**
*
Enable the endpoint
.
*
Mark if the endpoint exposes sensitive information
.
*/
private
boolean
enabled
=
true
;
private
boolean
sensitive
=
true
;
private
final
ServletWrappingController
controller
=
new
ServletWrappingController
();
...
...
@@ -103,21 +103,21 @@ public class JolokiaMvcEndpoint implements MvcEndpoint, InitializingBean,
}
@Override
public
String
getPath
()
{
return
this
.
path
;
public
boolean
isSensitive
()
{
return
this
.
sensitive
;
}
public
void
set
Path
(
String
path
)
{
this
.
path
=
path
;
public
void
set
Sensitive
(
boolean
sensitive
)
{
this
.
sensitive
=
sensitive
;
}
@Override
public
boolean
isSensitive
()
{
return
this
.
sensitive
;
public
String
getPath
()
{
return
this
.
path
;
}
public
void
set
Sensitive
(
boolean
sensitive
)
{
this
.
sensitive
=
sensitive
;
public
void
set
Path
(
String
path
)
{
this
.
path
=
path
;
}
@Override
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpoint.java
View file @
332c6911
...
...
@@ -60,14 +60,14 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware {
private
String
path
=
"/logfile"
;
/**
* Enable
security on
the endpoint.
* Enable the endpoint.
*/
private
boolean
sensitive
=
true
;
private
boolean
enabled
=
true
;
/**
*
Enable the endpoint
.
*
Mark if the endpoint exposes sensitive information
.
*/
private
boolean
enabled
=
true
;
private
boolean
sensitive
=
true
;
private
Environment
environment
;
...
...
@@ -85,6 +85,14 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware {
this
.
path
=
path
;
}
public
boolean
isEnabled
()
{
return
this
.
enabled
;
}
public
void
setEnabled
(
boolean
enabled
)
{
this
.
enabled
=
enabled
;
}
@Override
public
boolean
isSensitive
()
{
return
this
.
sensitive
;
...
...
@@ -94,14 +102,6 @@ public class LogFileMvcEndpoint implements MvcEndpoint, EnvironmentAware {
this
.
sensitive
=
sensitive
;
}
public
boolean
isEnabled
()
{
return
this
.
enabled
;
}
public
void
setEnabled
(
boolean
enabled
)
{
this
.
enabled
=
enabled
;
}
@Override
@SuppressWarnings
(
"rawtypes"
)
public
Class
<?
extends
Endpoint
>
getEndpointType
()
{
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ManagementErrorEndpoint.java
View file @
332c6911
...
...
@@ -67,4 +67,5 @@ public class ManagementErrorEndpoint implements MvcEndpoint {
public
Class
<?
extends
Endpoint
>
getEndpointType
()
{
return
null
;
}
}
spring-boot-actuator/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
332c6911
...
...
@@ -17,24 +17,12 @@
"sourceType"
:
"org.springframework.boot.actuate.endpoint.EnvironmentEndpoint"
,
"description"
:
"Keys that should be sanitized. Keys can be simple strings that the property ends with or regex expressions."
},
{
"name"
:
"endpoints.docs.enabled"
,
"type"
:
"java.lang.Boolean"
,
"description"
:
"Enable actuator docs endpoint."
,
"defaultValue"
:
true
},
{
"name"
:
"endpoints.jmx.enabled"
,
"type"
:
"java.lang.Boolean"
,
"description"
:
"Enable JMX export of all endpoints."
,
"defaultValue"
:
true
},
{
"name"
:
"endpoints.jolokia.enabled"
,
"type"
:
"java.lang.Boolean"
,
"description"
:
"Enable Jolokia endpoint."
,
"defaultValue"
:
true
},
{
"name"
:
"info"
,
"type"
:
"java.util.Map<java.lang.String,java.lang.Object>"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment