Top Fields Constructors Methods
org.eclipse.jetty.websocket.core

public Class Negotiated

extends Object
Class Inheritance
Imports
java.net.URI, .URISyntaxException, java.util.Collections, .HashMap, .List, .Map, .Objects, java.util.stream.Collectors, org.eclipse.jetty.http.HttpScheme, org.eclipse.jetty.util.Fields, .StringUtil, .UrlEncoded

Field Summary

Modifier and TypeField and Description
private final ExtensionStack
private final Map<String, List<String>>
private final String
private final URI
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
public
Negotiated(URI requestURI, String subProtocol, boolean secure, ExtensionStack extensions, String protocolVersion)

Method Summary

Modifier and TypeMethod and Description
public static Negotiated
from(ExtensionStack extensions)

public ExtensionStack
public Map<String, List<String>>
public String
public URI
public String
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public static URI

Returns:

the WebSocket scheme URI for the input URI.
toWebsocket
(final URI
the input URI
uri
)

Convert to WebSocket ws or wss scheme URIs

Converting http and https URIs to their WebSocket equivalent

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

extensionsback to summary
private final ExtensionStack extensions
parameterMapback to summary
private final Map<String, List<String>> parameterMap
protocolVersionback to summary
private final String protocolVersion
requestURIback to summary
private final URI requestURI
secureback to summary
private final boolean secure
subProtocolback to summary
private final String subProtocol

Constructor Detail

Negotiatedback to summary
public Negotiated(URI requestURI, String subProtocol, boolean secure, ExtensionStack extensions, String protocolVersion)

Method Detail

fromback to summary
public static Negotiated from(ExtensionStack extensions)
getExtensionsback to summary
public ExtensionStack getExtensions()
getParameterMapback to summary
public Map<String, List<String>> getParameterMap()
getProtocolVersionback to summary
public String getProtocolVersion()
getRequestURIback to summary
public URI getRequestURI()
getSubProtocolback to summary
public String getSubProtocol()
isSecureback to summary
public boolean isSecure()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
toWebsocketback to summary
public static URI toWebsocket(final URI uri)

Convert to WebSocket ws or wss scheme URIs

Converting http and https URIs to their WebSocket equivalent

Parameters
uri:URI

the input URI

Returns:URI

the WebSocket scheme URI for the input URI.