Class NuxeoIdempotentResponse

java.lang.Object
org.nuxeo.ecm.platform.web.common.idempotency.NuxeoIdempotentResponse

public class NuxeoIdempotentResponse extends Object
POJO representing response to be serialized and served by NuxeoIdempotentFilter.
Since:
11.5
  • Field Details

    • SKIPPED_HEADERS

      public static final Set<String> SKIPPED_HEADERS
    • status

      protected int status
    • headers

      protected Map<String,Collection<String>> headers
    • MAPPER

      protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
    • READ_MAPPER

      protected static final com.fasterxml.jackson.databind.ObjectReader READ_MAPPER
    • WRITE_MAPPER

      protected static final com.fasterxml.jackson.databind.ObjectWriter WRITE_MAPPER
  • Constructor Details

    • NuxeoIdempotentResponse

      public NuxeoIdempotentResponse()
  • Method Details

    • getStatus

      public int getStatus()
    • setStatus

      public void setStatus(int status)
    • getHeaders

      public Map<String,Collection<String>> getHeaders()
    • setHeader

      public void setHeader(String name, Collection<String> value)
    • restore

      public static final void restore(javax.servlet.http.HttpServletResponse response, byte[] bytes) throws IOException
      Throws:
      IOException
    • save

      public static final byte[] save(javax.servlet.http.HttpServletResponse response) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException