public static ResponseEncoding determineResponseEncodingWithDefault(RequestDetails theReq) {
		ResponseEncoding retVal = determineResponseEncodingNoDefault(theReq, theReq.getServer().getDefaultResponseEncoding());
		if (retVal == null) {
			retVal = new ResponseEncoding(theReq.getServer().getFhirContext(), theReq.getServer().getDefaultResponseEncoding(), null);
		}
		return retVal;
	}
public static ResponseEncoding determineResponseEncodingWithDefault ( RequestDetails theReq ) { ResponseEncoding retVal = determineResponseEncodingNoDefault ( theReq , theReq . getServer ( ) . getDefaultResponseEncoding ( ) ) ; if ( retVal == null ) { retVal = new ResponseEncoding ( theReq . getServer ( ) . getFhirContext ( ) , theReq . getServer ( ) . getDefaultResponseEncoding ( ) , null ) ; } return retVal ; }
Determine whether a response should be given in JSON or XML format based on the incoming HttpServletRequest's
<code>"_format"</code> parameter and <code>"Accept:"</code> HTTP header.