Class JsonWebengineWriter

java.lang.Object
org.nuxeo.ecm.webengine.app.JsonWebengineWriter

public class JsonWebengineWriter extends Object
Since:
6.0
  • Field Details

  • Constructor Details

    • JsonWebengineWriter

      public JsonWebengineWriter()
  • Method Details

    • writeException

      public static void writeException(OutputStream out, NuxeoException nuxeoException, javax.ws.rs.core.MediaType mediaType) throws IOException
      Throws:
      IOException
      Since:
      9.3
    • writeException

      public static void writeException(com.fasterxml.jackson.core.JsonGenerator jg, NuxeoException nuxeoException, javax.ws.rs.core.MediaType mediaType) throws IOException
      Throws:
      IOException
      Since:
      9.3
    • writeException

      protected static void writeException(com.fasterxml.jackson.core.JsonGenerator jg, Throwable t, javax.ws.rs.core.MediaType mediaType, int statusCode) throws IOException
      Throws:
      IOException
      Since:
      9.3
    • getExceptionMessage

      protected static String getExceptionMessage(String exceptionMessage, int statusCode)
      Since:
      11.5
    • getStackTraceString

      protected static String getStackTraceString(Throwable t) throws IOException
      Throws:
      IOException