Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
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
dataplatform
atlas
Commits
50c3adf1
Commit
50c3adf1
authored
Jul 26, 2018
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2794: updated AtlasClient to explicitly specify JacksonJaxbJsonProvider
(cherry picked from commit 9097d695c5509b874c86e0eae159cecf2a812de8)
parent
d1b3f21c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
AtlasBaseClient.java
...ommon/src/main/java/org/apache/atlas/AtlasBaseClient.java
+2
-0
No files found.
client/common/src/main/java/org/apache/atlas/AtlasBaseClient.java
View file @
50c3adf1
...
...
@@ -19,6 +19,7 @@ package org.apache.atlas;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.node.ObjectNode
;
import
com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider
;
import
com.google.common.annotations.VisibleForTesting
;
import
com.sun.jersey.api.client.Client
;
import
com.sun.jersey.api.client.ClientHandlerException
;
...
...
@@ -249,6 +250,7 @@ public abstract class AtlasBaseClient {
DefaultClientConfig
config
=
new
DefaultClientConfig
();
// Enable POJO mapping feature
config
.
getFeatures
().
put
(
JSONConfiguration
.
FEATURE_POJO_MAPPING
,
Boolean
.
TRUE
);
config
.
getClasses
().
add
(
JacksonJaxbJsonProvider
.
class
);
int
readTimeout
=
configuration
.
getInt
(
"atlas.client.readTimeoutMSecs"
,
60000
);
int
connectTimeout
=
configuration
.
getInt
(
"atlas.client.connectTimeoutMSecs"
,
60000
);
if
(
configuration
.
getBoolean
(
TLS_ENABLED
,
false
))
{
...
...
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