Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
e5d20632
Commit
e5d20632
authored
Jun 23, 2021
by
Muskan Srivastava
Browse files
made small change in HttpClientAzure
parent
d1b230de
Pipeline
#47904
passed with stages
in 10 minutes and 6 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/httpconfig/HttpClientAzure.java
View file @
e5d20632
...
...
@@ -21,6 +21,7 @@ import org.opengroup.osdu.core.common.http.IHttpClient;
import
org.opengroup.osdu.core.common.http.HttpResponse
;
import
org.opengroup.osdu.core.common.http.UrlFetchServiceImpl
;
import
org.opengroup.osdu.core.common.model.http.AppException
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.stereotype.Component
;
...
...
@@ -31,8 +32,10 @@ import java.net.URISyntaxException;
*/
@Primary
@Component
public
class
HttpClientAzure
extends
UrlFetchServiceImpl
implements
IHttpClient
{
public
class
HttpClientAzure
implements
IHttpClient
{
@Autowired
private
UrlFetchServiceImpl
urlFetchService
;
/**
* calls urlfetchservice's send request.
*
...
...
@@ -43,7 +46,7 @@ public class HttpClientAzure extends UrlFetchServiceImpl implements IHttpClient
public
HttpResponse
send
(
final
HttpRequest
httpRequest
)
{
org
.
opengroup
.
osdu
.
core
.
common
.
model
.
http
.
HttpResponse
response
=
null
;
try
{
response
=
super
.
sendRequest
(
FetchServiceHttpRequest
.
builder
()
response
=
this
.
urlFetchService
.
sendRequest
(
FetchServiceHttpRequest
.
builder
()
.
body
(
httpRequest
.
getBody
())
.
httpMethod
(
httpRequest
.
getHttpMethod
())
.
queryParams
(
httpRequest
.
getQueryParams
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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