Class OwsExceptionReport

    • Constructor Detail

      • OwsExceptionReport

        public OwsExceptionReport()
    • Method Detail

      • getExceptions

        public abstract List<? extends CodedException> getExceptions()
        Returns:
        Returns the ExceptionTypes of this exception
      • setVersion

        public final OwsExceptionReport setVersion​(String version)
        Set service version
        Parameters:
        version - the version to set
        Returns:
        this
      • getVersion

        public final String getVersion()
        Get service version
        Returns:
        service version
      • getNamespace

        public String getNamespace()
      • getStatus

        public final HTTPStatus getStatus()
        Returns:
        the HTTP response code of this OwsExceptionReport or
        getExceptions().get(0).getStatus() if it is not set and getExceptions().get(0) != this.
      • hasStatus

        public final boolean hasStatus()
        Returns:
        true, if a HTTP response code for this OwsExceptionReport or any sub exception is available
      • setStatus

        public final OwsExceptionReport setStatus​(HTTPStatus status)
        Sets the HTTP response code for this OwsExceptionReport.
        Parameters:
        status - the code
        Returns:
        this (for method chaining)