Lines Matching defs:reasonPhrase
66 * @param reasonPhrase the phrase describing the status code, for example "OK". Must be non-null
74 String reasonPhrase, Map<String, String> responseHeaders, InputStream data) {
76 setStatusCodeAndReasonPhrase(statusCode, reasonPhrase);
124 * @param reasonPhrase the phrase describing the status code, for example "OK". Must be non-null
127 public void setStatusCodeAndReasonPhrase(int statusCode, String reasonPhrase) {
135 if (reasonPhrase == null)
136 throw new IllegalArgumentException("reasonPhrase can't be null.");
137 if (reasonPhrase.trim().isEmpty())
138 throw new IllegalArgumentException("reasonPhrase can't be empty.");
139 for (int i = 0; i < reasonPhrase.length(); i++) {
140 int c = reasonPhrase.charAt(i);
143 "reasonPhrase can't contain non-ASCII characters.");
147 mReasonPhrase = reasonPhrase;
219 String reasonPhrase, Map<String, String> responseHeaders, InputStream data) {
224 mReasonPhrase = reasonPhrase;