src/java.net.http/share/classes/java/net/http/WebSocket.java
branchhttp-client-branch
changeset 56334 ca27c57cb857
parent 56333 4ca04a62862e
child 56337 58e16ad3fb98
equal deleted inserted replaced
56333:4ca04a62862e 56334:ca27c57cb857
   261          * A textual data has been received.
   261          * A textual data has been received.
   262          *
   262          *
   263          * <p> Return a {@code CompletionStage} which will be used by the
   263          * <p> Return a {@code CompletionStage} which will be used by the
   264          * {@code WebSocket} as an indication it may reclaim the
   264          * {@code WebSocket} as an indication it may reclaim the
   265          * {@code CharSequence}. Do not access the {@code CharSequence} after
   265          * {@code CharSequence}. Do not access the {@code CharSequence} after
   266          * this {@ode CompletionStage} has completed.
   266          * this {@code CompletionStage} has completed.
   267          *
   267          *
   268          * @implSpec The default implementation of this method behaves as if:
   268          * @implSpec The default implementation of this method behaves as if:
   269          *
   269          *
   270          * <pre>{@code
   270          * <pre>{@code
   271          *     webSocket.request(1);
   271          *     webSocket.request(1);
   272          *     return null;
   272          *     return null;
   273          * }</pre>
   273          * }</pre>
   274          *
   274          *
   275          * @implNote The {@data} is always a legal UTF-16 sequence.
   275          * @implNote The {@code data} is always a legal UTF-16 sequence.
   276          *
   276          *
   277          * @param webSocket
   277          * @param webSocket
   278          *         the WebSocket on which the data has been received
   278          *         the WebSocket on which the data has been received
   279          * @param data
   279          * @param data
   280          *         the data
   280          *         the data
   299          * its limit.
   299          * its limit.
   300          *
   300          *
   301          * <p> Return a {@code CompletionStage} which will be used by the
   301          * <p> Return a {@code CompletionStage} which will be used by the
   302          * {@code WebSocket} as an indication it may reclaim the
   302          * {@code WebSocket} as an indication it may reclaim the
   303          * {@code ByteBuffer}. Do not access the {@code ByteBuffer} after
   303          * {@code ByteBuffer}. Do not access the {@code ByteBuffer} after
   304          * this {@ode CompletionStage} has completed.
   304          * this {@code CompletionStage} has completed.
   305          *
   305          *
   306          * @implSpec The default implementation of this method behaves as if:
   306          * @implSpec The default implementation of this method behaves as if:
   307          *
   307          *
   308          * <pre>{@code
   308          * <pre>{@code
   309          *     webSocket.request(1);
   309          *     webSocket.request(1);
   336          * buffer's position to its limit.
   336          * buffer's position to its limit.
   337          *
   337          *
   338          * <p> Return a {@code CompletionStage} which will be used by the
   338          * <p> Return a {@code CompletionStage} which will be used by the
   339          * {@code WebSocket} as a signal it may reclaim the
   339          * {@code WebSocket} as a signal it may reclaim the
   340          * {@code ByteBuffer}. Do not access the {@code ByteBuffer} after
   340          * {@code ByteBuffer}. Do not access the {@code ByteBuffer} after
   341          * this {@ode CompletionStage} has completed.
   341          * this {@code CompletionStage} has completed.
   342          *
   342          *
   343          * @implSpec The default implementation of this method behaves as if:
   343          * @implSpec The default implementation of this method behaves as if:
   344          *
   344          *
   345          * <pre>{@code
   345          * <pre>{@code
   346          *     webSocket.request(1);
   346          *     webSocket.request(1);
   370          * buffer's position to its limit.
   370          * buffer's position to its limit.
   371          *
   371          *
   372          * <p> Return a {@code CompletionStage} which will be used by the
   372          * <p> Return a {@code CompletionStage} which will be used by the
   373          * {@code WebSocket} as a signal it may reclaim the
   373          * {@code WebSocket} as a signal it may reclaim the
   374          * {@code ByteBuffer}. Do not access the {@code ByteBuffer} after
   374          * {@code ByteBuffer}. Do not access the {@code ByteBuffer} after
   375          * this {@ode CompletionStage} has completed.
   375          * this {@code CompletionStage} has completed.
   376          *
   376          *
   377          * @implSpec The default implementation of this method behaves as if:
   377          * @implSpec The default implementation of this method behaves as if:
   378          *
   378          *
   379          * <pre>{@code
   379          * <pre>{@code
   380          *     webSocket.request(1);
   380          *     webSocket.request(1);