Class ProxyAdminClientUtils
java.lang.Object
org.wso2.carbon.proxyadmin.ui.client.ProxyAdminClientUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuildergetSecuredDocumentBuilder(boolean setIgnoreComments) This method provides a secured document builder which will secure XXE attacks.static String[]Sorts the given array alphabetically.
-
Constructor Details
-
ProxyAdminClientUtils
public ProxyAdminClientUtils()
-
-
Method Details
-
sortNames
Sorts the given array alphabetically. This method does not sort in-place. Therefore the original array is always unaffected. Returned array is a sorted copy.- Parameters:
names- An array of Strings- Returns:
- a sorted array
-
getSecuredDocumentBuilder
public static DocumentBuilder getSecuredDocumentBuilder(boolean setIgnoreComments) throws ParserConfigurationException This method provides a secured document builder which will secure XXE attacks.- Parameters:
setIgnoreComments- whether to set setIgnoringComments in DocumentBuilderFactory.- Returns:
- DocumentBuilder
- Throws:
ParserConfigurationException
-