Searched refs:RawChannel (Results 1 - 12 of 12) sorted by relevance

/openjdk10/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/websocket/
H A DTransmitter.java49 private final RawChannel channel;
50 private final RawChannel.RawEvent event;
52 Transmitter(RawChannel channel) {
71 private RawChannel.RawEvent createHandler() {
72 return new RawChannel.RawEvent() {
H A DRawChannel.java38 public interface RawChannel extends Closeable { interface in inherits:Closeable
42 RawChannel rawChannel() throws IOException;
H A DReceiver.java55 private final RawChannel channel;
58 private final RawChannel.RawEvent event = createHandler();
69 Receiver(MessageStreamConsumer messageConsumer, RawChannel channel) {
80 private RawChannel.RawEvent createHandler() {
81 return new RawChannel.RawEvent() {
H A DOpeningHandshake.java191 final RawChannel channel;
193 private Result(String subprotocol, RawChannel channel) {
219 ((RawChannel.Provider) response).rawChannel().close();
253 RawChannel channel = ((RawChannel.Provider) response).rawChannel();
H A DWebSocketImpl.java65 private final RawChannel channel;
130 RawChannel channel,
H A DOutgoingMessage.java82 protected boolean sendTo(RawChannel channel) throws IOException {
/openjdk10/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/
H A DHttpResponseImpl.java34 import jdk.incubator.http.internal.websocket.RawChannel;
39 class HttpResponseImpl<T> extends HttpResponse<T> implements RawChannel.Provider {
51 RawChannel rawchan;
141 * Returns a RawChannel that may be used for WebSocket protocol.
142 * @implNote This implementation does not support RawChannel over
144 * @return a RawChannel that may be used for WebSocket protocol.
145 * @throws UnsupportedOperationException if getting a RawChannel over
151 public synchronized RawChannel rawChannel() throws IOException {
155 // RawChannel is only used for WebSocket - and WebSocket
157 // here. Getting a RawChannel ove
[all...]
H A DRawChannelImpl.java29 import jdk.incubator.http.internal.websocket.RawChannel;
37 * Each RawChannel corresponds to a TCP connection (SocketChannel) but is
41 final class RawChannelImpl implements RawChannel {
57 // Constructing a RawChannel is supposed to have a "hand over"
/openjdk10/jdk/test/java/net/httpclient/whitebox/jdk.incubator.httpclient/jdk/incubator/http/
H A DSelectorTest.java38 import jdk.incubator.http.internal.websocket.RawChannel;
63 String readSomeBytes(RawChannel chan) {
91 final RawChannel chan = getARawChannel(port);
93 chan.registerEvent(new RawChannel.RawEvent() {
111 chan.registerEvent(new RawChannel.RawEvent() {
145 static RawChannel getARawChannel(int port) throws Exception {
H A DRawChannelTest.java26 import jdk.incubator.http.internal.websocket.RawChannel;
49 * RawChannel. It verifies that the underlying implementation can manage more
85 final RawChannel chan = channelOf(port);
91 print("RawChannel has %s initial bytes", initialBytes);
100 chan.registerEvent(new RawChannel.RawEvent() {
139 chan.registerEvent(new RawChannel.RawEvent() {
184 private static RawChannel channelOf(int port) throws Exception {
/openjdk10/jdk/test/java/net/httpclient/websocket/jdk.incubator.httpclient/jdk/incubator/http/internal/websocket/
H A DPingTest.java178 private WebSocket newWebSocket(RawChannel ch) {
182 private WebSocket newWebSocket(RawChannel ch, WebSocket.Listener l) {
H A DMockChannel.java51 final class MockChannel implements RawChannel, Mock {

Completed in 194 milliseconds