예제 #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;
 }