Java
Java
code posted
by
Tom
created at 22 Aug 22:16
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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)); } } |
685 Bytes in 4 ms with coderay