Class 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 response
        entity - could be null
        contentType - could be null
        headers - could be null
        Returns:
        the mocked outbound Response