private static void validateHeaderCharacters(final CharSequence name, final CharSequence value) { assert (name != null); assert (value != null); int idx = ensureRange(name); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "name", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } idx = ensureRange(value); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "value", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(128); sb.append(getClass().getName()) .append(" errorCode=").append(errorCode).append(" errorType=").append(errorType); String message = getLocalizedMessage(); return message != null ? (sb.append(": ").append(message).toString()) : sb.toString(); }
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());
private static void validateHeaderCharacters(final CharSequence name, final CharSequence value) { assert (name != null); assert (value != null); int idx = ensureRange(name); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "name", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } idx = ensureRange(value); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "value", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(128); sb.append(getClass().getName()) .append(" errorCode=").append(errorCode).append(" errorType=").append(errorType); String message = getLocalizedMessage(); return message != null ? (sb.append(": ").append(message).toString()) : sb.toString(); }
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());
private static void validateHeaderCharacters(final CharSequence name, final CharSequence value) { assert (name != null); assert (value != null); int idx = ensureRange(name); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "name", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } idx = ensureRange(value); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "value", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(128); sb.append(getClass().getName()) .append(" errorCode=").append(errorCode).append(" errorType=").append(errorType); String message = getLocalizedMessage(); return message != null ? (sb.append(": ").append(message).toString()) : sb.toString(); }
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());
private static void validateHeaderCharacters(final CharSequence name, final CharSequence value) { assert (name != null); assert (value != null); int idx = ensureRange(name); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "name", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } idx = ensureRange(value); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "value", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(128); sb.append(getClass().getName()) .append(" errorCode=").append(errorCode).append(" errorType=").append(errorType); String message = getLocalizedMessage(); return message != null ? (sb.append(": ").append(message).toString()) : sb.toString(); }
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());
private static void validateHeaderCharacters(final CharSequence name, final CharSequence value) { assert (name != null); assert (value != null); int idx = ensureRange(name); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "name", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } idx = ensureRange(value); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "value", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(128); sb.append(getClass().getName()) .append(" errorCode=").append(errorCode).append(" errorType=").append(errorType); String message = getLocalizedMessage(); return message != null ? (sb.append(": ").append(message).toString()) : sb.toString(); }
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());
private static void validateHeaderCharacters(final CharSequence name, final CharSequence value) { assert (name != null); assert (value != null); int idx = ensureRange(name); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "name", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } idx = ensureRange(value); if (idx != -1) { final String msg = String.format(INVALID_CHARACTER_MESSAGE, (int) name.charAt(idx), idx, "value", name, value); throw new HeaderDecodingException(ErrorCode.PROTOCOL_ERROR, ErrorType.STREAM, msg); } }
@Override public String toString() { final StringBuilder sb = new StringBuilder(128); sb.append(getClass().getName()) .append(" errorCode=").append(errorCode).append(" errorType=").append(errorType); String message = getLocalizedMessage(); return message != null ? (sb.append(": ").append(message).toString()) : sb.toString(); }
throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage()); throw new Http2SessionException(ErrorCode.COMPRESSION_ERROR, ioe.getCause().getMessage()); } catch (HeaderDecodingException hde) { if (hde.getErrorType() == HeaderDecodingException.ErrorType.SESSION) { throw new Http2SessionException(hde.getErrorCode(), hde.getMessage()); } else { throw new Http2StreamException(stream.getId(), hde.getErrorCode(), hde.getMessage());