Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
a08b661a
Commit
a08b661a
authored
Jul 11, 2017
by
Gregor Zurowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove usage of Lombok
Signed-off-by:
Gregor Zurowski
<
gregor@zurowski.org
>
parent
eb1b7baf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
2 deletions
+59
-2
RoutesEndpoint.java
...rg/springframework/cloud/netflix/zuul/RoutesEndpoint.java
+59
-2
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/RoutesEndpoint.java
View file @
a08b661a
...
...
@@ -18,11 +18,11 @@ package org.springframework.cloud.netflix.zuul;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Set
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonPropertyOrder
;
import
lombok.Data
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.actuate.endpoint.AbstractEndpoint
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
...
...
@@ -78,7 +78,6 @@ public class RoutesEndpoint extends AbstractEndpoint<Map<String, String>> {
*/
@JsonPropertyOrder
({
"id"
,
"fullPath"
,
"location"
})
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
@Data
public
static
class
RouteDetails
{
private
String
id
;
...
...
@@ -113,6 +112,64 @@ public class RoutesEndpoint extends AbstractEndpoint<Map<String, String>> {
this
.
customSensitiveHeaders
=
route
.
isCustomSensitiveHeaders
();
this
.
prefixStripped
=
route
.
isPrefixStripped
();
}
public
String
getId
()
{
return
id
;
}
public
String
getFullPath
()
{
return
fullPath
;
}
public
String
getPath
()
{
return
path
;
}
public
String
getLocation
()
{
return
location
;
}
public
String
getPrefix
()
{
return
prefix
;
}
public
Boolean
getRetryable
()
{
return
retryable
;
}
public
Set
<
String
>
getSensitiveHeaders
()
{
return
sensitiveHeaders
;
}
public
boolean
isCustomSensitiveHeaders
()
{
return
customSensitiveHeaders
;
}
public
boolean
isPrefixStripped
()
{
return
prefixStripped
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
RouteDetails
that
=
(
RouteDetails
)
o
;
return
Objects
.
equals
(
id
,
that
.
id
)
&&
Objects
.
equals
(
fullPath
,
that
.
fullPath
)
&&
Objects
.
equals
(
path
,
that
.
path
)
&&
Objects
.
equals
(
location
,
that
.
location
)
&&
Objects
.
equals
(
prefix
,
that
.
prefix
)
&&
Objects
.
equals
(
retryable
,
that
.
retryable
)
&&
Objects
.
equals
(
sensitiveHeaders
,
that
.
sensitiveHeaders
)
&&
customSensitiveHeaders
==
that
.
customSensitiveHeaders
&&
prefixStripped
==
that
.
prefixStripped
;
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
fullPath
,
path
,
location
,
prefix
,
retryable
,
sensitiveHeaders
,
customSensitiveHeaders
,
prefixStripped
);
}
}
}
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