示例#1
0
 // 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;
 }
示例#2
0
 // body 和 file
 public static Response msgHeaderBody(String header, String body) {
   Response responseMessage = new Response();
   responseMessage.setBody(body);
   responseMessage.setHeader(header);
   return responseMessage;
 }
示例#3
0
 // 只有body
 public static Response msgOnlyBody(String body) {
   Response responseMessage = new Response();
   responseMessage.setBody(body);
   return responseMessage;
 }