Title / Description
Code public class HttpResponse { public int responseCode = 0; public String responseMessage; public byte[] bytes; public String errorMessage; public boolean completedWithError = false; public String redirectLocation; public String toString() { return "Completed with error: " + (completedWithError ? "True" : "False") + "\n\r" + "Response Code: " + Integer.toString(responseCode) + "\n\r" + "Response Msg: " + responseMessage + "\n\r" + "Error Msg: " + errorMessage + "\n\r" + (redirectLocation == null ? "" : "Redirect: " + redirectLocation + "\n\r") + (bytes == null ? "" : new String(bytes)); } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code