-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into SDCCC-1243-GlueR0036_0-fails-on-subscription…
…-SOAPFault
- Loading branch information
Showing
13 changed files
with
162 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the MIT License. | ||
* Copyright (c) %year% Draegerwerk AG & Co. KGaA. | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
/\* | ||
\* This Source Code Form is subject to the terms of the MIT License. | ||
\* Copyright \(c\) (?:([0-9]{4}-[0-9]{4})|([0-9]{4}))(?:, (?:([0-9]{4}-[0-9]{4})|([0-9]{4})))* Draegerwerk AG & Co. KGaA. | ||
\* | ||
\* SPDX-License-Identifier: MIT | ||
\*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[DraegerLicenseMIT] | ||
file_name_pattern: sdccc/src/**/*.java | ||
file_header_encoding: utf-8 | ||
header_regex_file: .github/license-check/header-MIT-draeger-java.txt | ||
header_regex_file_encoding: utf-8 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
sdccc/src/main/java/com/draeger/medical/sdccc/sdcri/LocalAddressResolverImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* This Source Code Form is subject to the terms of the MIT License. | ||
* Copyright (c) 2024 Draegerwerk AG & Co. KGaA. | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
package com.draeger.medical.sdccc.sdcri; | ||
|
||
import com.draeger.medical.sdccc.configuration.TestSuiteConfig; | ||
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
import com.google.inject.name.Named; | ||
import java.util.Optional; | ||
import org.somda.sdc.dpws.network.LocalAddressResolver; | ||
|
||
/** | ||
* Implementation of {@linkplain LocalAddressResolver} that uses the configured address. | ||
*/ | ||
@Singleton | ||
public class LocalAddressResolverImpl implements LocalAddressResolver { | ||
private final String adapterAddress; | ||
|
||
@Inject | ||
LocalAddressResolverImpl(@Named(TestSuiteConfig.NETWORK_INTERFACE_ADDRESS) final String adapterAddress) { | ||
this.adapterAddress = adapterAddress; | ||
} | ||
|
||
@Override | ||
public Optional<String> getLocalAddress(final String remoteUri) { | ||
return Optional.of(adapterAddress); | ||
} | ||
} |
Oops, something went wrong.