Class WMSServiceExceptionUtil


  • public class WMSServiceExceptionUtil
    extends Object
    • Constructor Detail

      • WMSServiceExceptionUtil

        public WMSServiceExceptionUtil()
    • Method Detail

      • tryGetServiceExceptionMessage

        public static String tryGetServiceExceptionMessage​(byte[] body)
        Tries to parse a WMS service exception XML response of any WMS version and extract an error message.
        Parameters:
        body - The response body from a text/xml WMS response
        Returns:
        A service exception message or null if it can't be extracted