public class DataPublisherUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getDefaultAuthUrl(String receiverURL)
Deduce the default authentication URL based on the receiver URL passed in.
|
static String |
getDefaultAuthURLSet(String receiverURLSet)
Deduce the default authentication URL set based on the receiver URL set passed in.
|
static ArrayList<Object[]> |
getEndpointGroups(String urlSet)
Process and extracts the receiver Groups from the string of URL set pattern passed in.
|
static String[] |
getProtocolHostPort(String url)
Extracts and return the protocol, host, port elements from the URL.
|
static void |
validateURLs(ArrayList receiverGroups,
ArrayList authGroups)
Validate whether the receiverGroup and authenticationGroups are matching with pattern.
|
public static ArrayList<Object[]> getEndpointGroups(String urlSet) throws DataEndpointConfigurationException
urlSet - receiverGroups URL setDataEndpointConfigurationExceptionpublic static void validateURLs(ArrayList receiverGroups, ArrayList authGroups) throws DataEndpointConfigurationException
receiverGroups - List of Receiver groupsauthGroups - List of Authentication groups.DataEndpointConfigurationExceptionpublic static String[] getProtocolHostPort(String url) throws DataEndpointConfigurationException
url - String of URL that needs to be processed.DataEndpointConfigurationExceptionpublic static String getDefaultAuthUrl(String receiverURL) throws DataEndpointConfigurationException
receiverURL - receiver URL for which it's required to get the authentication URL.DataEndpointConfigurationExceptionpublic static String getDefaultAuthURLSet(String receiverURLSet) throws DataEndpointConfigurationException
receiverURLSet - receiver URL set for which it's required to get the authentication URL set.DataEndpointConfigurationExceptionCopyright © 2024 WSO2. All rights reserved.