Returns a string representation of this Request . The string representation is the first line (the method line) of the HTTP request that this Request is handling. Useful for debugging. @return The string representation of this Request .
()
| 718 | * @return The string representation of this <code>Request</code>. |
| 719 | */ |
| 720 | public String |
| 721 | toString() |
| 722 | { |
| 723 | StringBuffer sb = new StringBuffer(); |
| 724 | |
| 725 | sb.append(method).append(' ').append(url); |
| 726 | if ((query != null) && (query.length() > 0)) { |
| 727 | sb.append('?').append(query); |
| 728 | } |
| 729 | sb.append(' ').append(protocol); |
| 730 | sb.append(" (").append(sock.toString()).append(")"); |
| 731 | return sb.toString(); |
| 732 | } |
| 733 | |
| 734 | /** |
| 735 | * Reads an HTTP request from the socket. |
no test coverage detected