-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added method to format query parameter list and fixed error in status…
… parameter's name
- Loading branch information
1 parent
794e066
commit 42e2dde
Showing
5 changed files
with
31 additions
and
63 deletions.
There are no files selected for viewing
43 changes: 0 additions & 43 deletions
43
apps/user-ms/src/main/java/it/pagopa/selfcare/user/conf/RequestInterceptor.java
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
17 changes: 17 additions & 0 deletions
17
apps/user-ms/src/main/java/it/pagopa/selfcare/user/util/GeneralUtils.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,17 @@ | ||
package it.pagopa.selfcare.user.util; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class GeneralUtils { | ||
|
||
private static final String DELIMITER = ","; | ||
|
||
public static List<String> formatQueryParameterList(List<String> list) { | ||
if(Objects.nonNull(list) && list.size() == 1 && list.get(0).contains(DELIMITER)) { | ||
return Arrays.asList(list.get(0).split(DELIMITER)); | ||
} | ||
return list; | ||
} | ||
} |