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 byNuxeoIdempotentFilter
.- Since:
- 11.5
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Collection<String>>
headers
protected static com.fasterxml.jackson.databind.ObjectMapper
MAPPER
protected static com.fasterxml.jackson.databind.ObjectReader
READ_MAPPER
static Set<String>
SKIPPED_HEADERS
protected int
status
protected static com.fasterxml.jackson.databind.ObjectWriter
WRITE_MAPPER
-
Constructor Summary
Constructors Constructor Description NuxeoIdempotentResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Collection<String>>
getHeaders()
int
getStatus()
static void
restore(javax.servlet.http.HttpServletResponse response, byte[] bytes)
static byte[]
save(javax.servlet.http.HttpServletResponse response)
void
setHeader(String name, Collection<String> value)
void
setStatus(int status)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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
-
-