Komplettes G-Earth Paket inkl. JRE, Extensions und Tools. Extensions: - G-BuildTools, G-Click Ultimate, G-Loader, G-Manipulate - G-Presets, G-Translator, G-Trigger, G-itemViewer - Market Utils, Packet Info Explorer, Plants - RandomRoomVisitor, RoomLogger, Sanbovir Photo Inspector - SpyFriends, WallAligner, XabboScripter, xabbo
78 lines
2.6 KiB
Java
78 lines
2.6 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.websocket;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import javax.websocket.Decoder;
|
|
import javax.websocket.DefaultClientEndpointConfig;
|
|
import javax.websocket.Encoder;
|
|
import javax.websocket.EndpointConfig;
|
|
import javax.websocket.Extension;
|
|
import javax.websocket.HandshakeResponse;
|
|
|
|
public interface ClientEndpointConfig
|
|
extends EndpointConfig {
|
|
public List<String> getPreferredSubprotocols();
|
|
|
|
public List<Extension> getExtensions();
|
|
|
|
public Configurator getConfigurator();
|
|
|
|
public static final class Builder {
|
|
private List<String> preferredSubprotocols = Collections.emptyList();
|
|
private List<Extension> extensions = Collections.emptyList();
|
|
private List<Class<? extends Encoder>> encoders = Collections.emptyList();
|
|
private List<Class<? extends Decoder>> decoders = Collections.emptyList();
|
|
private Configurator clientEndpointConfigurator = new Configurator(){};
|
|
|
|
private Builder() {
|
|
}
|
|
|
|
public static Builder create() {
|
|
return new Builder();
|
|
}
|
|
|
|
public ClientEndpointConfig build() {
|
|
return new DefaultClientEndpointConfig(Collections.unmodifiableList(this.preferredSubprotocols), Collections.unmodifiableList(this.extensions), Collections.unmodifiableList(this.encoders), Collections.unmodifiableList(this.decoders), this.clientEndpointConfigurator);
|
|
}
|
|
|
|
public Builder configurator(Configurator clientEndpointConfigurator) {
|
|
this.clientEndpointConfigurator = clientEndpointConfigurator;
|
|
return this;
|
|
}
|
|
|
|
public Builder preferredSubprotocols(List<String> preferredSubprotocols) {
|
|
this.preferredSubprotocols = preferredSubprotocols == null ? new ArrayList() : preferredSubprotocols;
|
|
return this;
|
|
}
|
|
|
|
public Builder extensions(List<Extension> extensions) {
|
|
this.extensions = extensions == null ? new ArrayList() : extensions;
|
|
return this;
|
|
}
|
|
|
|
public Builder encoders(List<Class<? extends Encoder>> encoders) {
|
|
this.encoders = encoders == null ? new ArrayList() : encoders;
|
|
return this;
|
|
}
|
|
|
|
public Builder decoders(List<Class<? extends Decoder>> decoders) {
|
|
this.decoders = decoders == null ? new ArrayList() : decoders;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public static class Configurator {
|
|
public void beforeRequest(Map<String, List<String>> headers) {
|
|
}
|
|
|
|
public void afterResponse(HandshakeResponse hr) {
|
|
}
|
|
}
|
|
}
|
|
|