|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.databridge.agent.util.DataPublisherUtil
public class DataPublisherUtil
A Util class which holds all the utility processing methods in the data publisher operation.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ArrayList<Object[]> getEndpointGroups(String urlSet)
throws DataEndpointConfigurationException
urlSet - receiverGroups URL set
DataEndpointConfigurationException
public static void validateURLs(ArrayList receiverGroups,
ArrayList authGroups)
throws DataEndpointConfigurationException
receiverGroups - List of Receiver groupsauthGroups - List of Authentication groups.
DataEndpointConfigurationExceptionpublic static String[] getProtocolHostPort(String url)
url - String of URL that needs to be processed.
public static String getDefaultAuthUrl(String receiverURL)
receiverURL - receiver URL for which it's required to get the authentication URL.
public static String getDefaultAuthURLSet(String receiverURLSet)
throws DataEndpointConfigurationException
receiverURLSet - receiver URL set for which it's required to get the authentication URL set.
DataEndpointConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||