Skip to content

Commit cc73533

Browse files
committed
Move parseAppQuery to WebTestHelper
1 parent 4cd83b8 commit cc73533

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/org/labkey/test/WebTestHelper.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,23 @@ private static String maybeDecode(String value, boolean decode)
578578
: value;
579579
}
580580

581+
public static Map<String, String> parseAppQuery(URL url)
582+
{
583+
String ref = url.getRef();
584+
585+
if (ref != null)
586+
{
587+
int queryIndex = ref.indexOf("?");
588+
589+
if (queryIndex > -1)
590+
{
591+
return parseUrlQueryString(ref.substring(queryIndex), true);
592+
}
593+
}
594+
595+
return Collections.emptyMap();
596+
}
597+
581598
public static Connection getRemoteApiConnection()
582599
{
583600
return getRemoteApiConnection(true);

0 commit comments

Comments
 (0)