-
Notifications
You must be signed in to change notification settings - Fork 207
Configure jackson-databind to not suppress access checks. #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
397ef8c
4a6fed3
79c1c1e
28bfa1c
d3f4a43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,56 +7,60 @@ | |
| */ | ||
| public class AnonymousIpResponse extends AbstractResponse { | ||
|
|
||
| @JsonProperty("is_anonymous") | ||
| private boolean isAnonymous; | ||
|
|
||
| @JsonProperty("is_anonymous_vpn") | ||
| private boolean isAnonymousVpn; | ||
|
|
||
| @JsonProperty("is_hosting_provider") | ||
| private boolean isHostingProvider; | ||
|
|
||
| @JsonProperty("is_public_proxy") | ||
| private boolean isPublicProxy; | ||
|
|
||
| @JsonProperty("is_tor_exit_node") | ||
| private boolean isTorExitNode; | ||
|
|
||
| @JsonProperty("ip_address") | ||
| private String ipAddress; | ||
|
|
||
| private final boolean isAnonymous; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this class has the same serialization issue. |
||
| private final boolean isAnonymousVpn; | ||
| private final boolean isHostingProvider; | ||
| private final boolean isPublicProxy; | ||
| private final boolean isTorExitNode; | ||
| private final String ipAddress; | ||
|
|
||
| public AnonymousIpResponse(@JsonProperty("is_anonymous") boolean isAnonymous, @JsonProperty("is_anonymous_vpn") boolean isAnonymousVpn, | ||
| @JsonProperty("is_hosting_provider") boolean isHostingProvider, @JsonProperty("is_public_proxy") boolean isPublicProxy, | ||
| @JsonProperty("is_tor_exit_node") boolean isTorExitNode, @JsonProperty("ip_address") String ipAddress) { | ||
| this.isAnonymous = isAnonymous; | ||
| this.isAnonymousVpn = isAnonymousVpn; | ||
| this.isHostingProvider = isHostingProvider; | ||
| this.isPublicProxy = isPublicProxy; | ||
| this.isTorExitNode = isTorExitNode; | ||
| this.ipAddress = ipAddress; | ||
| } | ||
|
|
||
| /** | ||
| * @return whether the IP address belongs to any sort of anonymous network. | ||
| */ | ||
| @JsonProperty("is_anonymous") | ||
| public boolean isAnonymous() { | ||
| return isAnonymous; | ||
| } | ||
|
|
||
| /** | ||
| * @return whether the IP address belongs to an anonymous VPN system. | ||
| */ | ||
| @JsonProperty("is_anonymous_vpn") | ||
| public boolean isAnonymousVpn() { | ||
| return isAnonymousVpn; | ||
| } | ||
|
|
||
| /** | ||
| * @return whether the IP address belongs to a hosting provider. | ||
| */ | ||
| @JsonProperty("is_hosting_provider") | ||
| public boolean isHostingProvider() { | ||
| return isHostingProvider; | ||
| } | ||
|
|
||
| /** | ||
| * @return whether the IP address belongs to a public proxy. | ||
| */ | ||
| @JsonProperty("is_public_proxy") | ||
| public boolean isPublicProxy() { | ||
| return isPublicProxy; | ||
| } | ||
|
|
||
| /** | ||
| * @return whether the IP address is a Tor exit node. | ||
| */ | ||
| @JsonProperty("is_tor_exit_node") | ||
| public boolean isTorExitNode() { | ||
| return isTorExitNode; | ||
| } | ||
|
|
@@ -65,6 +69,7 @@ public boolean isTorExitNode() { | |
| /** | ||
| * @return The IP address that the data in the model is for. | ||
| */ | ||
| @JsonProperty("ip_address") | ||
| public String getIpAddress() { | ||
| return this.ipAddress; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,22 +33,26 @@ public String toString() { | |
| } | ||
| } | ||
|
|
||
| @JsonProperty("connection_type") | ||
| private ConnectionType connectionType; | ||
| private final ConnectionType connectionType; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The getter likely needs the annotation. |
||
| private final String ipAddress; | ||
|
|
||
| @JsonProperty("ip_address") | ||
| private String ipAddress; | ||
| public ConnectionTypeResponse(@JsonProperty("connection_type") ConnectionType connectionType, @JsonProperty("ip_address") String ipAddress) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As do all the |
||
| this.connectionType = connectionType; | ||
| this.ipAddress = ipAddress; | ||
| } | ||
|
|
||
| /** | ||
| * @return The connection type of the IP address. | ||
| */ | ||
| @JsonProperty("connection_type") | ||
| public ConnectionType getConnectionType() { | ||
| return this.connectionType; | ||
| } | ||
|
|
||
| /** | ||
| * @return The IP address that the data in the model is for. | ||
| */ | ||
| @JsonProperty("ip_address") | ||
| public String getIpAddress() { | ||
| return this.ipAddress; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also update the
ObjectMapperinWebServiceClientwith this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do