Returns the version for an API request. If the request was for a deprecated API call (such as /q, /suggest, /logs) this value will be 0. If the request was for a new API call, the version will be 1 or higher. If the user does not supply a version, the MAX_API_VERSION value will be used. @since 2.0
()
| 120 | * @since 2.0 |
| 121 | */ |
| 122 | public int apiVersion() { |
| 123 | return this.api_version; |
| 124 | } |
| 125 | |
| 126 | /** @return Whether or not to show stack traces in errors @since 2.0 */ |
| 127 | public boolean showStackTrace() { |
no outgoing calls