Class ResponseHelper
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.junit.ResponseHelper
-
public class ResponseHelper extends java.lang.Object
Helper for getting Response as Outbound Response
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.ws.rs.core.Response
getOutboundResponse(javax.ws.rs.core.Response.Status status, java.lang.Object entity, java.lang.String contentType, java.util.Map<java.lang.String,java.lang.String> headers)
Helper to build an outbound Response (mocking remote client response object)
-
-
-
Method Detail
-
getOutboundResponse
public static javax.ws.rs.core.Response getOutboundResponse(javax.ws.rs.core.Response.Status status, java.lang.Object entity, java.lang.String contentType, java.util.Map<java.lang.String,java.lang.String> headers)
Helper to build an outbound Response (mocking remote client response object)- Parameters:
status
- the status of responseentity
- could be nullcontentType
- could be nullheaders
- could be null- Returns:
- the mocked outbound Response
-
-