1public class ResponseConverter implements HttpResponseConverter {2 public FullHttpResponse convert(HttpResponse response) {3 FullHttpResponse res = new DefaultFullHttpResponse(4 HttpVersion.HTTP_1_1, HttpResponseStatus.valueOf(response.getStatus()));5 for (Map.Entry<String, String> entry : response.getHeaders().entrySet()) {6 res.headers().set(entry.getKey(), entry.getValue());7 }8 res.content().writeBytes(response.getContent().getBytes());9 return res;10 }11}12public class ResponseConverter implements HttpResponseConverter {13 public FullHttpResponse convert(HttpResponse response) {14 FullHttpResponse res = new DefaultFullHttpResponse(15 HttpVersion.HTTP_1_1, HttpResponseStatus.valueOf(response.getStatus()));16 for (Map.Entry<String, String> entry : response.getHeaders().entrySet()) {17 res.headers().set(entry.getKey(), entry.getValue());18 }19 res.content().writeBytes(response.getContent().getBytes());20 return res;21 }22}23public class ResponseConverter implements HttpResponseConverter {24 public FullHttpResponse convert(HttpResponse response) {25 FullHttpResponse res = new DefaultFullHttpResponse(26 HttpVersion.HTTP_1_1, HttpResponseStatus.valueOf(response.getStatus()));27 for (Map.Entry<String, String> entry : response.getHeaders().entrySet()) {28 res.headers().set(entry.getKey(), entry.getValue());29 }30 res.content().writeBytes(response.getContent().getBytes());31 return res;32 }33}34public class ResponseConverter implements HttpResponseConverter {35 public FullHttpResponse convert(HttpResponse response) {36 FullHttpResponse res = new DefaultFullHttpResponse(37 HttpVersion.HTTP_1_1, HttpResponseStatus.valueOf(response.getStatus()));38 for (Map.Entry<String, String> entry : response.getHeaders().entrySet()) {39 res.headers().set(entry.getKey(), entry.getValue());40 }41 res.content().writeBytes(response.getContent().getBytes());42 return res;43 }44}45public class ResponseConverter implements HttpResponseConverter {46 public FullHttpResponse convert(HttpResponse response) {47 FullHttpResponse res = new DefaultFullHttpResponse(48 HttpVersion.HTTP_1_1, HttpResponseStatus.valueOf(response.getStatus()));49 for (