Class DeployitExceptionMapper

java.lang.Object
com.xebialabs.deployit.ClosingExceptionMapper<com.xebialabs.deployit.engine.spi.exception.DeployitException>
com.xebialabs.deployit.rest.mappers.DeployitExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<com.xebialabs.deployit.engine.spi.exception.DeployitException>

@Provider @Component public class DeployitExceptionMapper extends ClosingExceptionMapper<com.xebialabs.deployit.engine.spi.exception.DeployitException> implements jakarta.ws.rs.ext.ExceptionMapper<com.xebialabs.deployit.engine.spi.exception.DeployitException>
  • Constructor Details

    • DeployitExceptionMapper

      @Autowired public DeployitExceptionMapper(com.xebialabs.deployit.ServerConfiguration config)
    • DeployitExceptionMapper

      public DeployitExceptionMapper(com.thoughtworks.xstream.XStream xStream, com.xebialabs.deployit.ServerConfiguration config)
  • Method Details

    • doCDataWrapping

      public static void doCDataWrapping(boolean wrap)
    • handleException

      public jakarta.ws.rs.core.Response handleException(com.xebialabs.deployit.engine.spi.exception.DeployitException exception)
      Specified by:
      handleException in class ClosingExceptionMapper<com.xebialabs.deployit.engine.spi.exception.DeployitException>
    • determineAcceptMediaType

      protected List<jakarta.ws.rs.core.MediaType> determineAcceptMediaType()