org.wso2.carbon.proxyadmin.ui.client

## Class ProxyAdminClientUtils

- java.lang.Object
- - org.wso2.carbon.proxyadmin.ui.client.ProxyAdminClientUtils

-     public class ProxyAdminClientUtils
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProxyAdminClientUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static DocumentBuilder` | `getSecuredDocumentBuilder(boolean setIgnoreComments)` This method provides a secured document builder which will secure XXE attacks.
    `static String[]` | `sortNames(String[] names)` Sorts the given array alphabetically.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ProxyAdminClientUtils

          public ProxyAdminClientUtils()

  - ### Method Detail

    - #### sortNames

          public static String[] sortNames(String[] names)

      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`

Copyright © 2019 WSO2. All rights reserved.