< prev index next >

src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/hpack/DecodingCallback.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -33,14 +33,14 @@
  * <p> Methods of the callback are never called by a decoder with any of the
  * arguments being {@code null}.
  *
  * @apiNote
  *
- * <p> The callback provides methods for all possible <a
- * href="https://tools.ietf.org/html/rfc7541#section-6">binary
- * representations</a>. This could be useful for implementing an intermediary,
- * logging, debugging, etc.
+ * <p> The callback provides methods for all possible
+ * <a href="https://tools.ietf.org/html/rfc7541#section-6">binary representations</a>.
+ * This could be useful for implementing an intermediary, logging, debugging,
+ * etc.
  *
  * <p> The callback is an interface in order to interoperate with lambdas (in
  * the most common use case):
  * <pre>{@code
  *     DecodingCallback callback = (name, value) -> System.out.println(name + ", " + value);

@@ -96,11 +96,12 @@
      *         whether or not the value is sensitive
      *
      * @see #onLiteralNeverIndexed(int, CharSequence, CharSequence, boolean)
      * @see #onLiteralNeverIndexed(CharSequence, boolean, CharSequence, boolean)
      */
-    default void onDecoded(CharSequence name, CharSequence value,
+    default void onDecoded(CharSequence name,
+                           CharSequence value,
                            boolean sensitive) {
         onDecoded(name, value);
     }
 
     /**

@@ -140,12 +141,14 @@
      * @param value
      *         header value
      * @param valueHuffman
      *         if the {@code value} was Huffman encoded
      */
-    default void onLiteral(int index, CharSequence name,
-                           CharSequence value, boolean valueHuffman) {
+    default void onLiteral(int index,
+                           CharSequence name,
+                           CharSequence value,
+                           boolean valueHuffman) {
         onDecoded(name, value, false);
     }
 
     /**
      * A <a href="https://tools.ietf.org/html/rfc7541#section-6.2.2">Literal

@@ -164,12 +167,14 @@
      * @param value
      *         header value
      * @param valueHuffman
      *         if the {@code value} was Huffman encoded
      */
-    default void onLiteral(CharSequence name, boolean nameHuffman,
-                           CharSequence value, boolean valueHuffman) {
+    default void onLiteral(CharSequence name,
+                           boolean nameHuffman,
+                           CharSequence value,
+                           boolean valueHuffman) {
         onDecoded(name, value, false);
     }
 
     /**
      * A <a href="https://tools.ietf.org/html/rfc7541#section-6.2.3">Literal

@@ -188,11 +193,12 @@
      * @param value
      *         header value
      * @param valueHuffman
      *         if the {@code value} was Huffman encoded
      */
-    default void onLiteralNeverIndexed(int index, CharSequence name,
+    default void onLiteralNeverIndexed(int index,
+                                       CharSequence name,
                                        CharSequence value,
                                        boolean valueHuffman) {
         onDecoded(name, value, true);
     }
 

@@ -213,12 +219,14 @@
      * @param value
      *         header value
      * @param valueHuffman
      *         if the {@code value} was Huffman encoded
      */
-    default void onLiteralNeverIndexed(CharSequence name, boolean nameHuffman,
-                                       CharSequence value, boolean valueHuffman) {
+    default void onLiteralNeverIndexed(CharSequence name,
+                                       boolean nameHuffman,
+                                       CharSequence value,
+                                       boolean valueHuffman) {
         onDecoded(name, value, true);
     }
 
     /**
      * A <a href="https://tools.ietf.org/html/rfc7541#section-6.2.1">Literal

@@ -239,11 +247,12 @@
      * @param valueHuffman
      *         if the {@code value} was Huffman encoded
      */
     default void onLiteralWithIndexing(int index,
                                        CharSequence name,
-                                       CharSequence value, boolean valueHuffman) {
+                                       CharSequence value,
+                                       boolean valueHuffman) {
         onDecoded(name, value, false);
     }
 
     /**
      * A <a href="https://tools.ietf.org/html/rfc7541#section-6.2.1">Literal

@@ -262,12 +271,14 @@
      * @param value
      *         header value
      * @param valueHuffman
      *         if the {@code value} was Huffman encoded
      */
-    default void onLiteralWithIndexing(CharSequence name, boolean nameHuffman,
-                                       CharSequence value, boolean valueHuffman) {
+    default void onLiteralWithIndexing(CharSequence name,
+                                       boolean nameHuffman,
+                                       CharSequence value,
+                                       boolean valueHuffman) {
         onDecoded(name, value, false);
     }
 
     /**
      * A <a href="https://tools.ietf.org/html/rfc7541#section-6.3">Dynamic Table
< prev index next >