/** * Creates a faked WebResponse for the request with the provided content. * @param wr the web request for which a response should be created * @param content the content to place in the response * @param contentType the content type of the response * @return a web response with the provided content * @throws IOException if an encoding problem occurred */ protected WebResponse createWebResponse(final WebRequest wr, final String content, final String contentType) throws IOException { return createWebResponse(wr, content, contentType, 200, "OK"); }
/** * Creates a faked WebResponse for the request with the provided content. * @param wr the web request for which a response should be created * @param content the content to place in the response * @param contentType the content type of the response * @return a web response with the provided content * @throws IOException if an encoding problem occurred */ protected WebResponse createWebResponse(final WebRequest wr, final String content, final String contentType) throws IOException { return createWebResponse(wr, content, contentType, 200, "OK"); }
/** * Creates a faked WebResponse for the request with the provided content. * @param wr the web request for which a response should be created * @param content the content to place in the response * @param contentType the content type of the response * @return a web response with the provided content * @throws IOException if an encoding problem occurred */ protected WebResponse createWebResponse(final WebRequestSettings wr, final String content, final String contentType) throws IOException { return createWebResponse(wr, content, contentType, 200, "OK"); }
/** * Creates a faked WebResponse for the request with the provided content. * @param wr the web request for which a response should be created * @param content the content to place in the response * @param contentType the content type of the response * @return a web response with the provided content * @throws IOException if an encoding problem occurred */ protected WebResponse createWebResponse(final WebRequestSettings wr, final String content, final String contentType) throws IOException { return createWebResponse(wr, content, contentType, 200, "OK"); }
/** * Creates a faked WebResponse for the request with the provided content. * @param wr the web request for which a response should be created * @param content the content to place in the response * @param contentType the content type of the response * @return a web response with the provided content * @throws IOException if an encoding problem occurred */ protected WebResponse createWebResponse(final WebRequestSettings wr, final String content, final String contentType) throws IOException { return createWebResponse(wr, content, contentType, 200, "OK"); }