Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.undertow.websockets.client;
 
 import org.xnio.Pool;
 
 import java.net.URI;

Author(s):
Stuart Douglas
public abstract class WebSocketClientHandshake {
    protected final URI url;
    public static WebSocketClientHandshake create(final WebSocketVersion versionfinal URI uri) {
        return create(versionurinull);
    }
    public static WebSocketClientHandshake create(final WebSocketVersion versionfinal URI uriWebSocketClientNegotiation clientNegotiation) {
        switch (version) {
            case :
                return new WebSocket13ClientHandshake(uriclientNegotiation);
        }
        throw new IllegalArgumentException();
    }
    public WebSocketClientHandshake(final URI url) {
        this. = url;
    }
    public abstract WebSocketChannel createChannel(final StreamConnection channelfinal String wsUrifinal Pool<ByteBufferbufferPool);
    public abstract Map<StringStringcreateHeaders();
    public abstract HandshakeChecker handshakeChecker(final URI urifinal Map<StringStringrequestHeaders);
New to GrepCode? Check out our FAQ X