// header,body 和 file public static Response msgBodyFile(String header, String body, String filePath) { Response responseMessage = new Response(); responseMessage.setHeader(header); responseMessage.setBody(body); responseMessage.setFilePath(filePath); return responseMessage; }
// body 和 file public static Response msgHeaderBody(String header, String body) { Response responseMessage = new Response(); responseMessage.setBody(body); responseMessage.setHeader(header); return responseMessage; }
// 只有body public static Response msgOnlyBody(String body) { Response responseMessage = new Response(); responseMessage.setBody(body); return responseMessage; }