Package fr.gouv.vitam.common.server.application.junit

# Class ResponseHelper

java.lang.Object
fr.gouv.vitam.common.server.application.junit.ResponseHelper

public class ResponseHelper extends Object
Helper for getting Response as Outbound Response

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static jakarta.ws.rs.core.Response`
  `getOutboundResponse(jakarta.ws.rs.core.Response.Status status, Object entity, String contentType, Map<String,String> headers)`
  Helper to build an outbound Response (mocking remote client response object)

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getOutboundResponse

    public static jakarta.ws.rs.core.Response getOutboundResponse(jakarta.ws.rs.core.Response.Status status, Object entity, String contentType, Map<String,String> headers)
    Helper to build an outbound Response (mocking remote client response object)
    Parameters:
      `status` - the status of response
      `entity` - could be null
      `contentType` - could be null
      `headers` - could be null
    Returns:
      the mocked outbound Response